/* ============================================
   CONTACT US PAGE - Cosmic Word Hunter Theme (REDESIGNED)
   ============================================ */

* {
    box-sizing: border-box;
}

.contact-section {
    min-height: 100vh;
    padding: 80px 25px;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #F472B6 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(255, 255, 255, 0.03) 35px,
        rgba(255, 255, 255, 0.03) 70px
    );
    pointer-events: none;
    opacity: 0.6;
}

.left-section-img,
.right-section-img {
    position: absolute;
    opacity: 0.08;
    z-index: 0;
}

.left-section-img {
    left: 0;
    top: 0;
}

.right-section-img {
    right: 0;
    bottom: 0;
}

.container-contact {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header Section */
.contact-header {
    text-align: center;
    margin-bottom: 70px;
    animation: fadeInDown 0.8s ease;
}

.contact-header h1 {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFFFFF, #F1F5F9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.contact-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
    border-radius: 3px;
    box-shadow: 0 2px 15px rgba(255, 255, 255, 0.5);
}

.contact-header p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Wrapper */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    animation: fadeInUp 0.9s ease;
}

/* Contact Info Card */
.contact-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 50px;
    box-shadow: 0 30px 80px rgba(6, 182, 212, 0.4), 0 0 40px rgba(6, 182, 212, 0.2);
    border: 2px solid rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #06B6D4, #0EA5E9, #F472B6, #0EA5E9, #06B6D4);
    background-size: 300% 100%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 100px rgba(6, 182, 212, 0.5), 0 0 60px rgba(6, 182, 212, 0.3);
    border-color: rgba(6, 182, 212, 0.6);
}

.contact-info-header {
    margin-bottom: 45px;
}

.contact-info-header h2 {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #06B6D4, #0EA5E9, #F472B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.contact-info-header p {
    color: #64748B;
    font-size: 17px;
    line-height: 1.6;
}

/* Info Items */
.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(6, 182, 212, 0.08);
    border-radius: 20px;
    border-left: 5px solid #06B6D4;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.15), transparent);
    transition: left 0.6s ease;
}

.info-item:hover::before {
    left: 100%;
}

.info-item:hover {
    transform: translateX(10px);
    background: rgba(6, 182, 212, 0.15);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.25);
    border-left-color: #0EA5E9;
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.12);
    border-radius: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    background: rgba(6, 182, 212, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 14px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    word-break: break-word;
}

/* Decorative Circles */
.contact-decoration {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 50px;
}

.decoration-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06B6D4, #F472B6);
    animation: pulse 2s ease-in-out infinite;
}

.decoration-circle:nth-child(2) {
    animation-delay: 0.3s;
}

.decoration-circle:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Contact Form Card */
.contact-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 50px;
    box-shadow: 0 30px 80px rgba(6, 182, 212, 0.4), 0 0 40px rgba(6, 182, 212, 0.2);
    border: 2px solid rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-form-card:hover {
    box-shadow: 0 40px 100px rgba(6, 182, 212, 0.5), 0 0 60px rgba(6, 182, 212, 0.3);
    border-color: rgba(6, 182, 212, 0.6);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group label {
    display: block;
    font-weight: 800;
    color: #0F172A;
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    position: relative;
}

.form-group label::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #06B6D4, #F472B6);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

.form-group:focus-within label::after {
    width: 50px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 18px 22px;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #0F172A;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #06B6D4;
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.25), 0 0 25px rgba(6, 182, 212, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94A3B8;
    transition: color 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: #CBD5E1;
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #06B6D4 0%, #0EA5E9 50%, #F472B6 100%);
    color: #fff;
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4), 0 0 25px rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.5), 0 0 35px rgba(6, 182, 212, 0.4);
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #F472B6 100%);
}

.btn-submit:active {
    transform: translateY(-2px) scale(1.01);
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(5px) rotate(15deg);
}

/* Error Styles */
.error {
    color: #F472B6;
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
    display: block;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 40px;
    }

    .contact-header h1 {
        font-size: 48px;
    }
}

@media screen and (max-width: 768px) {
    .contact-section {
        padding: 60px 20px;
    }

    .contact-header {
        margin-bottom: 50px;
    }

    .contact-header h1 {
        font-size: 40px;
    }

    .contact-header p {
        font-size: 18px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 35px 25px;
        border-radius: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info-header h2 {
        font-size: 30px;
    }

    .btn-submit {
        width: 100%;
        padding: 18px 40px;
    }
}

@media screen and (max-width: 480px) {
    .contact-header h1 {
        font-size: 32px;
    }

    .contact-header p {
        font-size: 16px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .contact-info-header h2 {
        font-size: 26px;
    }

    .info-item {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .info-icon {
        width: 45px;
        height: 45px;
    }

    .form-group input,
    .form-group textarea {
        padding: 16px 18px;
        font-size: 15px;
    }

    .btn-submit {
        padding: 16px 35px;
        font-size: 16px;
    }
}
