/* =========================================================================
   Contact Page Styles - R. G. Shah Science College
   Palette: Primary #0F2A4C | Secondary #D6AD60 | Cream #F7F3EA | Text #344054 | Highlight #3987C9
   ========================================================================= */

.contact-page-wrap {
    background-color: var(--white, #FFFFFF);
    padding-top: 120px;
    padding-bottom: 120px;
    position: relative;
}

/* Header & Intro */
.contact-section-header {
    margin-bottom: 45px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 8px 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-color, #0F2A4C);
    background-color: #F7F3EA;
    border: 1px solid #ECE7DB;
    margin-bottom: 12px;
}

.contact-badge i {
    color: var(--secondary-color, #D6AD60);
    font-size: 14px;
}

.contact-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color, #0F2A4C);
    line-height: 1.25;
    margin-bottom: 12px;
}

.contact-subtitle {
    font-size: 16px;
    color: var(--body-text, #344054);
    max-width: 650px;
    line-height: 1.6;
}

/* =========================================================================
   Left Column: Information Panel
   ========================================================================= */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.contact-info-card {
    background-color: #FAF8F3;
    border: 1px solid #ECE7DB;
    border-radius: 16px 0;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-color, #D6AD60);
    box-shadow: 0 12px 28px rgba(15, 42, 76, 0.08);
    background-color: #FFFFFF;
}

.contact-info-icon-wrap {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px 0;
    background-color: #FFFFFF;
    border: 1px solid #ECE7DB;
    color: var(--primary-color, #0F2A4C);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.contact-info-card:hover .contact-info-icon-wrap {
    background-color: var(--primary-color, #0F2A4C);
    color: var(--secondary-color, #D6AD60);
    border-color: var(--primary-color, #0F2A4C);
}

.contact-info-content {
    flex-grow: 1;
}

.contact-info-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color, #D6AD60);
    margin-bottom: 4px;
}

.contact-info-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color, #0F2A4C);
    margin-bottom: 8px;
    line-height: 1.35;
}

.contact-info-text {
    font-size: 14px;
    color: var(--body-text, #344054);
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-link {
    color: var(--primary-color, #0F2A4C);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--secondary-color, #D6AD60);
    text-decoration: underline;
}

.contact-link-divider {
    color: #CBD5E1;
    margin: 0 8px;
}

/* Social links card */
.contact-social-card {
    background-color: var(--primary-color, #0F2A4C);
    border: 1px solid var(--primary-color, #0F2A4C);
    border-radius: 16px 0;
    padding: 24px;
    color: #FFFFFF;
    margin-top: auto;
}

.contact-social-title {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.contact-social-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
    line-height: 1.5;
}

.contact-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px 0;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(214, 173, 96, 0.35);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.contact-social-btn:hover {
    background-color: var(--secondary-color, #D6AD60);
    color: var(--primary-color, #0F2A4C);
    transform: translateY(-2px);
}

/* =========================================================================
   Right Column: Contact Form Card
   ========================================================================= */
.contact-form-card {
    background-color: var(--white, #FFFFFF);
    border: 1px solid #ECE7DB;
    border-radius: 16px 0;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(15, 42, 76, 0.06);
    position: relative;
}

.contact-form-head {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ECE7DB;
}

.contact-form-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color, #0F2A4C);
    margin-bottom: 6px;
}

.contact-form-note {
    font-size: 14px;
    color: #667085;
    margin-bottom: 0;
}

.required-mark {
    color: #D92D20;
    font-weight: 700;
    margin-left: 2px;
}

/* Form Group & Controls */
.contact-form-group {
    margin-bottom: 22px;
    position: relative;
}

.contact-form-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color, #0F2A4C);
    margin-bottom: 8px;
    display: block;
}

.contact-form-control {
    width: 100%;
    border: 1px solid #D0D5DD;
    border-radius: 8px 0;
    padding: 13px 16px;
    font-size: 15px;
    color: var(--body-text, #344054);
    background-color: #FFFFFF;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form-control:focus {
    border-color: var(--primary-color, #0F2A4C);
    box-shadow: 0 0 0 3px rgba(15, 42, 76, 0.12);
    outline: none;
}

.contact-form-control.is-invalid {
    border-color: #D92D20;
    background-color: #FFFBFB;
}

.contact-form-feedback {
    font-size: 12.5px;
    color: #D92D20;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

/* CAPTCHA Challenge Component */
.contact-captcha-box {
    background-color: #FAF8F3;
    border: 1px solid #ECE7DB;
    border-radius: 12px 0;
    padding: 18px;
    margin-bottom: 24px;
}

.contact-captcha-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-color, #0F2A4C);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-captcha-challenge {
    background-color: var(--primary-color, #0F2A4C);
    color: var(--secondary-color, #D6AD60);
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 8px 0;
    letter-spacing: 2px;
    user-select: none;
    -webkit-user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    border: 1px solid rgba(214, 173, 96, 0.4);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.contact-captcha-refresh-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px 0;
    background-color: #FFFFFF;
    border: 1px solid #D0D5DD;
    color: var(--primary-color, #0F2A4C);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.contact-captcha-refresh-btn:hover {
    background-color: var(--primary-color, #0F2A4C);
    color: var(--secondary-color, #D6AD60);
    border-color: var(--primary-color, #0F2A4C);
}

.contact-captcha-refresh-btn.spinning i {
    animation: captchaSpin 0.75s linear infinite;
}

@keyframes captchaSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-captcha-input-wrap {
    flex-grow: 1;
    min-width: 150px;
}

.contact-captcha-hint {
    font-size: 12px;
    color: #667085;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Honeypot field (hidden off-screen for bot trapping) */
.contact-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Submit Button */
.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    background-color: var(--primary-color, #0F2A4C);
    border: 2px solid var(--primary-color, #0F2A4C);
    border-radius: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(15, 42, 76, 0.15);
}

.contact-submit-btn:hover {
    background-color: var(--secondary-color, #D6AD60);
    border-color: var(--secondary-color, #D6AD60);
    color: var(--primary-color, #0F2A4C);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214, 173, 96, 0.25);
}

.contact-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Status Alerts */
.contact-alert {
    border-radius: 10px 0;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14.5px;
    line-height: 1.55;
    position: relative;
}

.contact-alert-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-alert-content {
    flex-grow: 1;
}

.contact-alert-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-alert-success {
    background-color: #ECFDF3;
    border: 1px solid #A6F4C5;
    color: #027A48;
}

.contact-alert-success .contact-alert-title {
    color: #027A48;
}

.contact-alert-danger {
    background-color: #FEF3F2;
    border: 1px solid #FECDCA;
    color: #B42318;
}

.contact-alert-danger .contact-alert-title {
    color: #B42318;
}

.contact-alert-close {
    background: none;
    border: none;
    color: currentColor;
    opacity: 0.7;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: opacity 0.2s ease;
}

.contact-alert-close:hover {
    opacity: 1;
}

/* =========================================================================
   Interactive Campus Map Section
   ========================================================================= */
.contact-map-section {
    padding-top: 20px;
    padding-bottom: 90px;
    background-color: var(--white, #FFFFFF);
}

.contact-map-card {
    background-color: #FAF8F3;
    border: 1px solid #ECE7DB;
    border-radius: 16px 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 42, 76, 0.05);
}

.contact-map-header {
    padding: 20px 28px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #ECE7DB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-map-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color, #0F2A4C);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-map-title i {
    color: var(--secondary-color, #D6AD60);
    font-size: 20px;
}

.contact-map-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-color, #0F2A4C);
    background-color: #F7F3EA;
    border: 1px solid #ECE7DB;
    padding: 6px 14px;
    border-radius: 6px 0;
    text-decoration: none;
    transition: all 0.25s ease;
}

.contact-map-directions-btn:hover {
    background-color: var(--primary-color, #0F2A4C);
    color: var(--secondary-color, #D6AD60);
    border-color: var(--primary-color, #0F2A4C);
}

.contact-map-frame-wrap {
    position: relative;
    width: 100%;
    height: 420px;
    background-color: #E2E8F0;
}

.contact-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 991px) {
    .contact-page-wrap {
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .contact-form-card {
        padding: 30px;
        margin-top: 30px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-map-frame-wrap {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .contact-page-wrap {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .contact-section-header {
        margin-bottom: 30px;
    }

    .contact-title {
        font-size: 24px;
    }

    .contact-form-card {
        padding: 24px 18px;
    }

    .contact-captcha-row {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-captcha-challenge {
        width: 100%;
    }

    .contact-captcha-refresh-btn {
        width: 100%;
        height: 40px;
    }

    .contact-map-frame-wrap {
        height: 280px;
    }

    .contact-info-card {
        padding: 18px;
    }
}

