/* ===== Contact Page Professional Styles ===== */

.contact-page {
    width: 100%;
    background: var(--bg-primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
    padding: 80px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 50px 0 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

/* Info Sidebar */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-card {
    background: white;
    padding: 22px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-100);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-color: var(--primary);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: scale(1.1);
}

.info-content h3 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 0.9rem;
    color: var(--neutral-700);
    font-weight: 500;
}

.info-content span {
    font-size: 0.8rem;
    color: var(--neutral-400);
}

/* Social Connect */
.social-connect {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-100);
    text-align: center;
}

.social-connect h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link.facebook {
    background: #1877F2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Contact Form */
.contact-form-wrapper {
    position: sticky;
    top: calc(var(--header-height) + 30px);
}

.form-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-100);
}

.form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--neutral-100);
}

.form-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--neutral-500);
    font-size: 0.95rem;
}

.form-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--neutral-700);
    letter-spacing: 0.3px;
}

.required {
    color: var(--error);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
    transition: color 0.3s ease;
}

.input-with-icon.textarea-icon i {
    top: 16px;
    transform: none;
}

.input-with-icon .form-control {
    padding-left: 42px;
}

.input-with-icon textarea.form-control {
    padding-left: 42px;
    padding-top: 14px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    background: var(--neutral-50);
    border: 2px solid var(--neutral-100);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--neutral-800);
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(142, 11, 65, 0.06);
}

.form-control:focus + i,
.input-with-icon:focus-within i {
    color: var(--primary);
}

.form-control::placeholder {
    color: var(--neutral-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

/* Custom Dropdown */
.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    width: 100%;
    padding: 13px 40px 13px 16px;
    background: var(--neutral-50);
    border: 2px solid var(--neutral-100);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--neutral-700);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.custom-select-trigger:hover {
    border-color: var(--neutral-300);
    background: white;
}

.custom-select-trigger.open {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(142, 11, 65, 0.08);
}

.custom-select-trigger .arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-trigger .arrow i {
    font-size: 0.7rem;
    color: var(--neutral-500);
    transition: color 0.3s ease;
}

.custom-select-trigger.open .arrow {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-trigger.open .arrow i {
    color: var(--primary);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--neutral-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 200;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.custom-select-options.open {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    overflow-y: auto;
}

.custom-select-option {
    padding: 13px 18px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--neutral-700);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--neutral-50);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: var(--bg-primary);
    color: var(--primary);
    padding-left: 24px;
}

.custom-select-option.selected {
    background: var(--bg-primary);
    color: var(--primary);
    font-weight: 600;
}

.custom-select-option.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--primary);
}

.select-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: none;
}

.select-overlay.active {
    display: block;
}

/* Submit Button */
.submit-btn {
    margin-top: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(142, 11, 65, 0.35);
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 16px;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--neutral-500);
    margin-bottom: 24px;
}

/* Features Strip */
.features-strip {
    background: white;
    padding: 30px 0;
    border-top: 1px solid var(--neutral-100);
    width: 100%;
    margin-top: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-text h4 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--neutral-500);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-wrapper {
        position: static;
    }
    
    .contact-info-sidebar {
        order: 2;
    }
    
    .contact-form-wrapper {
        order: 1;
    }
    
    .info-card-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .contact-section {
        padding: 30px 0 0;
    }
    
    .form-card {
        padding: 28px 20px;
    }
    
    .form-row-dual {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .info-card-wrapper {
        grid-template-columns: 1fr;
    }
    
    .features-strip {
        margin-top: 30px;
    }
    
    .feature-text h4 {
        white-space: normal;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 36px 0 30px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .contact-section {
        padding: 20px 0 0;
    }
    
    .form-card {
        padding: 20px 16px;
    }
    
    .form-header {
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .form-control {
        padding: 11px 14px;
        font-size: 0.85rem;
    }
    
    .input-with-icon .form-control {
        padding-left: 36px;
    }
    
    .custom-select-trigger {
        padding: 11px 36px 11px 14px;
        font-size: 0.85rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .feature-item {
        gap: 10px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feature-text h4 {
        font-size: 0.75rem;
    }
    
    .feature-text p {
        font-size: 0.7rem;
    }
    
    .info-card {
        padding: 16px;
    }
}