/**
 * G.B.Shah College for Technology and Management
 * Contact Page Dedicated Stylesheet
 * Scoped strictly to .contact-section and contact page elements
 */

:root {
    --contact-primary: #1c2f4d;
    --contact-primary-dark: #122035;
    --contact-secondary: #37acb6;
    --contact-secondary-dark: #2b8b93;
    --contact-secondary-light: rgba(55, 172, 182, 0.12);
    --contact-bg-light: #f3f6f8;
    --contact-card-bg: #ffffff;
    --contact-text-body: #344054;
    --contact-text-muted: #667085;
    --contact-border: #e4e7ec;
    --contact-border-focus: #37acb6;
    --contact-focus-ring: rgba(55, 172, 182, 0.25);
    --contact-success: #059669;
    --contact-success-bg: #ecfdf5;
    --contact-error: #dc2626;
    --contact-error-bg: #fef2f2;
    --contact-shadow: 0 4px 20px rgba(28, 47, 77, 0.06);
    --contact-shadow-hover: 0 10px 28px rgba(28, 47, 77, 0.12);
    --contact-radius: 12px;
}

/* =========================================================================
   1. Contact Section Wrapper
   ========================================================================= */
.contact-section {
    background-color: var(--contact-bg-light);
    padding: 60px 0 80px 0;
    position: relative;
    color: var(--contact-text-body);
}

.contact-header-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px auto;
}

.contact-eyebrow {
    display: inline-block;
    background: var(--contact-secondary-light);
    color: var(--contact-secondary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.contact-main-heading {
    font-size: 32px;
    font-weight: 700;
    color: var(--contact-primary);
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.contact-lead-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--contact-text-muted);
    margin: 0;
}

/* =========================================================================
   2. Contact Information Column (Left Side)
   ========================================================================= */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--contact-card-bg);
    border: 1px solid var(--contact-border);
    border-radius: var(--contact-radius);
    padding: 22px 24px;
    box-shadow: var(--contact-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--contact-shadow-hover);
    border-color: rgba(55, 172, 182, 0.45);
}

.contact-icon-bubble {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--contact-secondary) 0%, #268b94 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(55, 172, 182, 0.3);
}

.contact-info-body {
    flex: 1;
}

.contact-info-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--contact-primary);
    margin: 0 0 6px 0;
}

.contact-info-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--contact-text-body);
    margin: 0;
}

.contact-link-item {
    display: inline-block;
    color: var(--contact-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}

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

.contact-link-divider {
    color: var(--contact-border);
    margin: 0 6px;
}

.contact-map-card {
    background: var(--contact-card-bg);
    border: 1px solid var(--contact-border);
    border-radius: var(--contact-radius);
    overflow: hidden;
    box-shadow: var(--contact-shadow);
}

.contact-map-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--contact-border);
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-map-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--contact-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-map-ext-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--contact-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.contact-map-ext-link:hover {
    color: var(--contact-secondary-dark);
    text-decoration: underline;
}

.contact-map-frame-wrap {
    width: 100%;
    height: 280px;
    position: relative;
    background: #eaecf0;
}

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

/* =========================================================================
   3. Contact Form Card (Right Side)
   ========================================================================= */
.contact-form-card {
    background: var(--contact-card-bg);
    border: 1px solid var(--contact-border);
    border-radius: var(--contact-radius);
    padding: 36px 34px;
    box-shadow: var(--contact-shadow);
    position: relative;
}

.contact-form-header {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--contact-border);
}

.contact-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--contact-primary);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-subtitle {
    font-size: 14px;
    color: var(--contact-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Honeypot field (hidden from legitimate users) */
.contact-hp-group {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--contact-primary);
    margin-bottom: 6px;
}

.contact-req-mark {
    color: var(--contact-error);
    margin-left: 2px;
}

.contact-input-wrap {
    position: relative;
}

.contact-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--contact-text-muted);
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.contact-textarea-wrap .contact-input-icon {
    top: 16px;
    transform: none;
}

.contact-form-input {
    width: 100%;
    height: 46px;
    padding: 10px 14px 10px 42px;
    font-size: 14px;
    color: var(--contact-text-body);
    background-color: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.contact-form-textarea {
    width: 100%;
    min-height: 110px;
    max-height: 240px;
    padding: 12px 14px 12px 42px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--contact-text-body);
    background-color: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
    box-sizing: border-box;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: var(--contact-border-focus);
    box-shadow: 0 0 0 3px var(--contact-focus-ring);
    background-color: #ffffff;
}

.contact-form-input.is-invalid,
.contact-form-textarea.is-invalid {
    border-color: var(--contact-error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.contact-field-feedback {
    display: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--contact-error);
    margin-top: 5px;
}

.contact-field-feedback.is-visible {
    display: block;
}

/* =========================================================================
   4. CAPTCHA Widget Styling
   ========================================================================= */
.contact-captcha-box {
    background: #f8fafc;
    border: 1px solid var(--contact-border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
}

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

.contact-captcha-img-holder {
    background: #ffffff;
    border: 1px solid var(--contact-border);
    border-radius: 6px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}

.contact-captcha-img-holder img {
    display: block;
    width: 160px;
    height: 48px;
    user-select: none;
    -webkit-user-drag: none;
}

.contact-captcha-refresh-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--contact-border);
    background: #ffffff;
    color: var(--contact-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.contact-captcha-refresh-btn:hover {
    background: var(--contact-secondary-light);
    color: var(--contact-secondary);
    border-color: var(--contact-secondary);
}

.contact-captcha-refresh-btn.is-spinning i {
    animation: contactRotate 0.6s linear infinite;
}

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

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

.contact-captcha-input {
    width: 100%;
    height: 44px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--contact-primary);
    background-color: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    box-sizing: border-box;
}

.contact-captcha-input:focus {
    outline: none;
    border-color: var(--contact-border-focus);
    box-shadow: 0 0 0 3px var(--contact-focus-ring);
}

.contact-captcha-hint {
    display: block;
    font-size: 12px;
    color: var(--contact-text-muted);
    margin-top: 6px;
}

/* =========================================================================
   5. Submit Button and Notifications
   ========================================================================= */
.contact-submit-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--contact-primary) 0%, #15253e 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(28, 47, 77, 0.2);
    transition: all 0.25s ease;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, var(--contact-secondary) 0%, #268b94 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(55, 172, 182, 0.35);
    transform: translateY(-1px);
}

.contact-submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(28, 47, 77, 0.2);
}

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

.contact-spinner-icon {
    display: none;
    animation: contactRotate 0.75s linear infinite;
}

.contact-submit-btn.is-loading .contact-spinner-icon {
    display: inline-block;
}

.contact-submit-btn.is-loading .contact-btn-icon {
    display: none;
}

/* Notifications / Alert Banner */
.contact-notification {
    display: none;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 22px;
    animation: contactFadeIn 0.3s ease-out;
}

.contact-notification.is-visible {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-notification-success {
    background-color: var(--contact-success-bg);
    border: 1px solid rgba(5, 150, 105, 0.3);
    color: #065f46;
}

.contact-notification-error {
    background-color: var(--contact-error-bg);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #991b1b;
}

.contact-notification-icon {
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
}

.contact-notification-content {
    flex: 1;
}

.contact-notification-close {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0;
    line-height: 1;
}

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

@keyframes contactFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   6. Responsive Layout Breakpoints
   ========================================================================= */
@media (max-width: 991px) {
    .contact-section {
        padding: 50px 0 60px 0;
    }

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

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

@media (max-width: 767px) {
    .contact-main-heading {
        font-size: 26px;
    }

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

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

    .contact-icon-bubble {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 18px;
    }

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

    .contact-form-title {
        font-size: 19px;
    }

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

    .contact-captcha-img-holder {
        width: 100%;
        max-width: 200px;
    }

    .contact-captcha-refresh-btn {
        width: 44px;
    }
}

@media (max-width: 480px) {
    .contact-main-heading {
        font-size: 22px;
    }

    .contact-lead-desc {
        font-size: 14px;
    }

    .contact-link-item {
        font-size: 13px;
    }

    .contact-submit-btn {
        font-size: 14px;
        height: 44px;
    }
}
