/* ===================================
   Contact Hero Section
   =================================== */

.contact-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.contact-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-hero-subtitle {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 28px;
}

.contact-hero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-feature i {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.hero-feature span {
    font-size: 16px;
    color: var(--gray-800);
    font-weight: 500;
    line-height: 1.5;
}

.contact-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.1));
}

/* ===================================
   Contact Form Section
   =================================== */

.contact-form-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

/* Contact Info Cards */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.contact-card-icon i,
.contact-card-icon i.fa-solid,
.contact-info-card i {
    font-size: 26px;
    color: #ffffff !important;
    display: block;
    -webkit-text-fill-color: #ffffff !important;
}

.contact-card-icon i::before,
.contact-card-icon i.fa-solid::before {
    display: inline-block;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.contact-card-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-link {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 6px;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-dark);
}

.contact-address {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 6px;
}

.contact-meta {
    display: block;
    font-size: 13px;
    color: var(--gray-600);
}

/* Contact Form */
.contact-form-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--gray-200);
    border-radius: 24px;
    padding: 56px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.form-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--primary-gradient) border-box;
    border-image: linear-gradient(90deg, transparent, var(--primary), transparent) 1;
    position: relative;
}

.form-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    position: relative;
}

.form-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 16px auto 0;
    border-radius: 2px;
}

.form-header p {
    font-size: 17px;
    color: var(--gray-600);
    margin-top: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.2px;
}

.form-group label i {
    font-size: 16px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--primary-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.captcha-group {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 28px;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

.captcha-group label {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.captcha-group #captchaQuestion {
    font-weight: 700;
    color: var(--primary);
    background: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-block;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

/* Privacy Checkbox */
.privacy-group {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 28px;
    border-radius: 16px;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.1);
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    cursor: pointer;
    position: relative;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #d97706;
    border-radius: 6px;
    background: var(--white);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #d97706;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label input[type="checkbox"]:focus ~ .checkbox-custom {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.checkbox-text {
    font-size: 14px;
    color: #78350f;
    line-height: 1.7;
    flex: 1;
}

.checkbox-text a {
    color: #d97706;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.checkbox-text a:hover {
    color: #f59e0b;
    border-bottom-color: #f59e0b;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 56px;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.45);
}

.btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-submit i {
    font-size: 20px;
}

.form-note {
    font-size: 14px;
    color: var(--gray-600);
    text-align: center;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.form-note i {
    font-size: 14px;
    color: var(--primary);
}

/* Form Messages */
.form-message {
    margin-top: 24px;
    padding: 18px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* ===================================
   Alternative Contact Section
   =================================== */

.contact-alternative {
    padding: 80px 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.contact-alternative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.alternative-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.alternative-content h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.alternative-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 36px;
}

.alternative-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.alt-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    transition: var(--transition);
}

.alt-btn i {
    font-size: 18px;
}

.alt-btn.primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.alt-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.alt-btn.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.alt-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .contact-hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-hero-image {
        order: -1;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-wrapper {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 60px;
    }

    .contact-hero-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .contact-hero-subtitle {
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-feature {
        gap: 10px;
    }

    .hero-feature i {
        font-size: 20px;
    }

    .hero-feature span {
        font-size: 14px;
    }

    .contact-form-section {
        padding: 60px 0;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .form-header h2 {
        font-size: 26px;
    }

    .form-header p {
        font-size: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form {
        gap: 20px;
    }

    /* Captcha responsive */
    .captcha-group {
        padding: 20px 16px;
    }

    .captcha-group label {
        flex-wrap: wrap;
        font-size: 14px;
    }

    .captcha-group #captchaQuestion {
        font-size: 16px;
        padding: 4px 10px;
    }

    /* Privacy checkbox responsive */
    .privacy-group {
        padding: 20px 16px;
    }

    .checkbox-text {
        font-size: 13px;
        line-height: 1.5;
    }

    .checkbox-custom {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
    }

    .contact-alternative {
        padding: 60px 0;
    }

    .alternative-content h2 {
        font-size: 26px;
    }

    .alternative-content p {
        font-size: 15px;
    }

    .alternative-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .alt-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-hero-title {
        font-size: 24px;
    }

    .contact-hero-subtitle {
        font-size: 14px;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .form-header p {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 14px;
    }

    /* Captcha mobile */
    .captcha-group {
        padding: 20px 16px;
    }

    .captcha-group label {
        font-size: 15px;
        gap: 8px;
        justify-content: center;
    }

    .captcha-group label i {
        font-size: 16px;
    }

    .captcha-group #captchaQuestion {
        font-size: 16px;
        padding: 5px 12px;
    }

    .captcha-group input {
        margin-top: 12px;
    }

    /* Privacy mobile */
    .privacy-group {
        padding: 16px 14px;
    }

    .checkbox-label {
        gap: 10px !important;
    }

    .checkbox-custom {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .checkbox-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .btn-submit {
        padding: 14px 24px;
        font-size: 16px;
    }

    .alternative-content h2 {
        font-size: 22px;
    }

    .alternative-content p {
        font-size: 14px;
    }
}
