/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

/* --- Utilities --- */
.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-6 {
    margin-top: 24px;
}

.mt-8 {
    margin-top: 32px;
}

.mt-12 {
    margin-top: 48px;
}

.ml-1 {
    margin-left: 4px;
}

.ml-2 {
    margin-left: 8px;
}

.text-sm {
    font-size: 14px;
}

.font-bold {
    font-weight: 700;
}

.text-muted {
    color: #9CA3AF;
}

/* --- Hero Section --- */
.contact-hero-section {
    background-color: #FFFFFF;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 60px;
    position: relative;
}

.contact-hero-title {
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.contact-hero-subtitle {
    white-space: pre-line;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Direct Contact Section (BEM Light Blue) --- */
.direct-contact-section {
    background-color: var(--surface-container-lowest);
    padding-bottom: 80px;
}

.section-desc {
    white-space: pre-line;
    margin-top: 16px;
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.contact__card {
    background-color: #F0F4FF;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(15, 98, 254, 0.04);
    border: 1px solid #DCE6FF;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 98, 254, 0.08);
}

.contact__card-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.contact__icon-circle {
    width: 56px;
    height: 56px;
    background-color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #0F62FE;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.contact__content {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
}

.contact__title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.contact__text {
    font-size: 15px;
    color: #4B5563;
    line-height: 1.6;
    white-space: pre-line;
    margin: 0;
    flex-grow: 1;
}

.contact__link {
    color: #0F62FE;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.contact__link:hover {
    text-decoration: underline;
}

/* --- Pickup Form Section --- */
.pickup-form-section {
    background-color: var(--surface-container-low);
    padding: 96px 0;
}

.form-section-title {
    margin-bottom: 48px;
    font-weight: 700;
}

.form-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 48px 56px;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.form-group-title {
    font-weight: 700;
    margin-bottom: 24px;
    color: #111827;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.form-row-full {
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
}

/* Bold Labels */
.label-sm {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

/* Rounded, bordered inputs matching the UI */
.input-field {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #111827;
    background-color: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.input-field::placeholder {
    color: #9CA3AF;
}

.input-field:focus {
    border-color: #0F62FE;
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1);
}

.form-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%207.5L10%2012.5L15%207.5%22%20stroke%3D%22%236B7280%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    color: #4B5563;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.input-hint {
    font-size: 12px;
    font-weight: 400;
    color: #6B7280;
}

.form-divider {
    border: 0;
    height: 1px;
    background-color: #F3F4F6;
    margin: 40px 0;
}

/* Pill-shaped submit button */
.form-submit-btn {
    padding: 14px 40px;
    font-size: 16px;
    border-radius: 30px;
    font-weight: 600;
}

/* --- Visit Lab Section --- */
.visit-lab-section {
    background-color: var(--surface-container-lowest);
    padding: 120px 0;
}

.visit-lab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.visit-title {
    margin-bottom: 40px;
    font-weight: 700;
}

.address-text {
    white-space: pre-line;
    line-height: 1.6;
    color: #4B5563;
}

/* Outlined Box */
.info-box {
    background-color: var(--surface-container-low);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
}

/* Rounded Map */
.map-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .contact__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .visit-lab-grid {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .form-card {
        padding: 40px 32px;
    }

    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .visit-lab-grid {
        grid-template-columns: 1fr;
    }

    .lab-info {
        order: 2;
    }

    .lab-map {
        order: 1;
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 32px 24px;
    }
}