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


/* ---- Hero ---- */
.contact-hero {
    padding: 150px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
   content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Add grid pattern ONLY to background */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Crect x='10' y='10' width='80' height='80' rx='20' fill='none' stroke='%23f1f3f9' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-position: center top;
    
    /* Fade the background pattern at the edges */
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-navy);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin: 16px 0 20px;
}

.contact-hero-sub {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* ---- Section ---- */
.contact-section {
    padding: 80px 0 120px;
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 70px;
    align-items: start;
}

/* ---- Form Wrapper ---- */
.contact-form-wrapper {
    background: #f8fafc;
    border: 1px solid #e8edf5;
    border-radius: 24px;
    padding: 40px;
}

.contact-form-header {
    margin-bottom: 35px;
}

.contact-form-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-navy);
    margin-bottom: 8px;
}

.contact-form-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ---- Form Rows ---- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 1.5px solid #d8e0ec;
    border-radius: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    color: var(--text-navy);
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aab8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(253, 82, 2, 0.1);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
}

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

.contact-submit-btn {
    width: 100%;
    background: var(--text-navy);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.contact-submit-btn:hover {
    background: #0f1e3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 30, 63, 0.25);
}

/* ---- Info Panel ---- */
.contact-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-navy);
    margin-bottom: 8px;
}

.contact-info-sub {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: #f8fafc;
    border: 1.5px solid #e8edf5;
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    border-color: var(--brand-green);
    box-shadow: 0 5px 20px rgba(253, 82, 2, 0.08);
}

.info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(253, 82, 2, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.info-card p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-navy);
}

/* ---- Onboarding CTA ---- */
.onboard-cta {
    background: var(--text-navy);
    border-radius: 20px;
    padding: 32px;
    color: white;
}

.onboard-cta h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.onboard-cta p {
    font-size: 0.95rem;
    color: #889bb0;
    margin-bottom: 20px;
    line-height: 1.5;
}

.onboard-btn {
    display: inline-block;
    background: var(--brand-green);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 50px;
    transition: opacity 0.2s, transform 0.2s;
}

.onboard-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ---- Responsive ---- */

/* =====================================================================
   RESPONSIVE — contact.css
   320px mobile-small | 480px mobile | 768px tablet | 1024px laptop
   ===================================================================== */

/* laptop (≤ 1024px) */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contact-info { order: 2; }
    .contact-form-wrapper { order: 1; }
    .contact-hero-title { font-size: 3rem; }
}

/* tablet (≤ 768px) */
@media (max-width: 768px) {
    .contact-hero { padding: 110px 0 60px; }
    .contact-hero-title { font-size: 2rem; }
    .contact-hero-sub { font-size: 1rem; }

    .contact-section { padding: 60px 0 80px; }
    .contact-grid { gap: 32px; }

    .contact-form-wrapper { padding: 25px 20px; }
    .form-row { grid-template-columns: 1fr; }

    .contact-info-item { padding: 16px; gap: 12px; }
    .info-icon { width: 42px; height: 42px; min-width: 42px; }
}

/* mobile (≤ 480px) */
@media (max-width: 480px) {
    .contact-hero-title { font-size: 1.9rem; }
    .contact-form-wrapper { padding: 15px 10px !important; }
    .contact-form-header { margin-bottom: 20px !important; }
    .contact-submit-btn { padding: 14px; font-size: 0.95rem; }

    .contact-info-card { padding: 20px; }
    .contact-info-item { padding: 14px; }
}

/* mobile-small (≤ 320px) */
@media (max-width: 320px) {
    .contact-hero-title { font-size: 2rem; }
    .contact-form-wrapper { padding: 12px 8px !important; }
    .contact-form-header { margin-bottom: 15px !important; }
    .info-icon { width: 36px; height: 36px; min-width: 36px; }
}