/* =========================================
   CONTACT PAGE: HERO SECTION
========================================= */
.contact-hero-modern {
    position: relative;
    padding: 120px 20px 80px 20px;
    background-color: #020617; /* Very dark slate */
    text-align: center;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow: hidden;
}

.contact-hero-modern .hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-hero-modern .contact-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Fades the image into the dark background */
}

/* Creates a smooth fade into the white section below */
.contact-hero-modern .hero-bg-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(0deg, #f8fafc 0%, transparent 100%);
}

.contact-hero-modern .contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero-modern .badge-blue {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.4);
}

.contact-hero-modern h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.contact-hero-modern .text-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero-modern p {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   CONTACT PAGE: MAIN GRID & FORM
========================================= */
.contact-main-section {
    background-color: #f8fafc;
    padding: 20px 20px 100px 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.contact-main-section .contact-grid-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* Form side slightly wider */
    gap: 60px;
    align-items: flex-start;
}

/* --- Left Side: Info --- */
.contact-main-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.contact-main-section .info-lead {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 40px 0;
}

.contact-main-section .trust-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-main-section .trust-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-main-section .trust-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-main-section .trust-icon svg {
    width: 24px;
    height: 24px;
}

.contact-main-section .trust-text strong {
    display: block;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 5px;
}

.contact-main-section .trust-text p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.contact-main-section .direct-contact-box {
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.contact-main-section .direct-contact-box span {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
}

.contact-main-section .direct-contact-box a {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

/* --- Right Side: The Form Card --- */
.contact-main-section .form-card {
    background: #ffffff;
    padding: 45px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-main-section .form-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.contact-main-section .form-card p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 30px 0;
}

/* Form Inputs */
.contact-main-section .input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.contact-main-section label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.contact-main-section input,
.contact-main-section textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    color: #0f172a;
    transition: all 0.3s ease;
}

.contact-main-section input::placeholder,
.contact-main-section textarea::placeholder {
    color: #94a3b8;
}

/* The beautiful focus ring when typing */
.contact-main-section input:focus,
.contact-main-section textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.contact-main-section textarea {
    resize: vertical; /* Allows resizing height only */
}

/* Submit Button */
.contact-main-section .btn-submit-form {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.contact-main-section .btn-submit-form svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.contact-main-section .btn-submit-form:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

.contact-main-section .btn-submit-form:hover svg {
    transform: translateX(5px); /* Arrow shoots forward slightly */
}

/* --- Animations --- */
.contact-hero-modern .reveal,
.contact-main-section .reveal {
    opacity: 0;
    animation: fadeUpContact 0.8s ease forwards;
}

@keyframes fadeUpContact {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 960px) {
    .contact-main-section .contact-grid-container {
        grid-template-columns: 1fr; /* Stack layout */
        gap: 50px;
    }
}

@media (max-width: 600px) {
    .contact-hero-modern {
        padding: 80px 20px 60px 20px;
    }
    
    .contact-main-section .form-card {
        padding: 30px 20px;
    }
}