/* ============================================================
   JLIVE — Contact & Editorial Board Inquiry Page Styles
   Aesthetic: Refined Academic / Modern Glass & Gold Accents
   ============================================================ */

.contact-page-wrapper {
    min-height: 85vh;
    padding-top: calc(var(--nav-height, 72px) + 32px);
    padding-bottom: 80px;
    background: linear-gradient(180deg, #F8FAFC 0%, #EDF2F7 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle background academic decorative elements */
.contact-page-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-page-wrapper::after {
    content: "";
    position: absolute;
    top: 300px;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 31, 68, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* --- Header Section --- */
.contact-header {
    margin-bottom: 36px;
    text-align: left;
}

.contact-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 9999px;
    font-family: var(--font-mono, 'DM Mono', monospace);
    font-size: 0.78rem;
    font-weight: 600;
    color: #92650a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.contact-eyebrow-badge .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.3);
    animation: contactPulse 2s infinite ease-in-out;
}

@keyframes contactPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.contact-page-title {
    font-family: var(--font-display, 'IBM Plex Serif', Georgia, serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--navy, #0A1F44);
    line-height: 1.2;
    margin-bottom: 12px;
}

.contact-page-desc {
    font-size: 1.05rem;
    color: #4B5563;
    max-width: 720px;
    line-height: 1.6;
}

/* --- 2-Column Grid Layout --- */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 36px;
    align-items: start;
}

/* --- Left Column: Info & Editorial Callout --- */
.contact-sidebar-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 10px 30px rgba(10, 31, 68, 0.04);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-sidebar-heading {
    font-family: var(--font-display, 'IBM Plex Serif', Georgia, serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy, #0A1F44);
    margin-bottom: 6px;
}

.contact-sidebar-subtext {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.55;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon-bubble {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #0A1F44;
    color: #C9A84C;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.15);
}

.contact-detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94A3B8;
    font-family: var(--font-mono, 'DM Mono', monospace);
}

.contact-detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.45;
}

.contact-detail-value a {
    color: var(--navy, #0A1F44);
    text-decoration: none;
    transition: color 0.15s ease;
}

.contact-detail-value a:hover {
    color: #C9A84C;
    text-decoration: underline;
}

/* Editorial Board Callout Banner */
.eb-callout-box {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, rgba(10, 31, 68, 0.04) 100%);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 12px;
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.eb-callout-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #C9A84C;
}

.eb-callout-title {
    font-family: var(--font-display, 'IBM Plex Serif', Georgia, serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy, #0A1F44);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.eb-callout-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 12px;
}

.eb-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.82rem;
    color: #334155;
}

.eb-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eb-checklist li svg {
    color: #C9A84C;
    flex-shrink: 0;
}

/* --- Right Column: The Contact Form Card --- */
.contact-main-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 10px 36px rgba(10, 31, 68, 0.06);
    position: relative;
}

.form-header-bar {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #F1F5F9;
}

.form-header-title {
    font-family: var(--font-display, 'IBM Plex Serif', Georgia, serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--navy, #0A1F44);
    margin-bottom: 4px;
}

.form-header-desc {
    font-size: 0.88rem;
    color: #64748B;
}

/* Dynamic Alert for Join Editorial Board mode */
.eb-mode-indicator {
    display: none;
    background: rgba(10, 31, 68, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
    align-items: flex-start;
    gap: 12px;
}

.eb-mode-indicator.visible {
    display: flex;
    animation: fadeInSlide 0.3s ease-out;
}

.eb-mode-icon {
    color: #C9A84C;
    flex-shrink: 0;
    margin-top: 1px;
}

.eb-mode-text {
    font-size: 0.85rem;
    color: #0A1F44;
    line-height: 1.45;
}

.eb-mode-text strong {
    font-weight: 700;
    color: #0A1F44;
}

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

/* Form Fields */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-family: var(--font-mono, 'DM Mono', monospace);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.field-label .required-star {
    color: #E11D48;
    margin-left: 3px;
}

.field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-input-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: 0.95rem;
    color: #1E293B;
    background-color: #FFFFFF;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    outline: none;
    border-color: #0A1F44;
    box-shadow: 0 0 0 3.5px rgba(10, 31, 68, 0.12);
    background-color: #FAFAFD;
}

.field-select {
    padding-left: 42px;
    padding-right: 36px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 14px) center;
}

.field-textarea {
    padding-left: 14px;
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.field-help-text {
    font-size: 0.76rem;
    color: #64748B;
    margin-top: 2px;
}

/* Submit Action Button */
.form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    background: #0A1F44;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 14px rgba(10, 31, 68, 0.25);
    margin-top: 8px;
}

.form-submit-btn:hover:not(:disabled) {
    background: #14326d;
    box-shadow: 0 6px 20px rgba(10, 31, 68, 0.35);
    transform: translateY(-1px);
}

.form-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: btnSpin 0.75s infinite linear;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

.form-submit-btn.is-submitting .btn-spinner {
    display: inline-block;
}

.form-submit-btn.is-submitting .btn-icon,
.form-submit-btn.is-submitting .btn-text-content {
    opacity: 0.85;
}

/* Status Notifications */
.form-status-alert {
    display: none;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 20px;
    animation: fadeInSlide 0.3s ease-out;
}

.form-status-alert.visible {
    display: block;
}

.form-status-alert.success-alert {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid #C9A84C;
    color: #0A1F44;
}

.form-status-alert.error-alert {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.alert-content-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-message h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.alert-message p {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.reset-form-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0A1F44;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.reset-form-link:hover {
    color: #C9A84C;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .contact-grid-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-sidebar-card {
        order: 2;
    }
    
    .contact-main-card {
        order: 1;
    }
}

@media (max-width: 640px) {
    .contact-page-wrapper {
        padding-top: calc(var(--nav-height, 72px) + 20px);
        padding-bottom: 50px;
    }
    
    .form-row-two-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-main-card {
        padding: 24px 20px;
    }
    
    .contact-sidebar-card {
        padding: 24px 20px;
    }
}
