/* ═══════════════════════════════════════════════
   Submit Abstract — Single-Viewport Design
   Fits entirely on one screen (1080p+)
   ═══════════════════════════════════════════════ */

/* ── Page Shell ── */
.sa-page {
    padding-top: 110px;
    /* fixed header clearance + breathing room */
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #fdf6ef 0%, #f5ebe0 40%, #ede0d4 100%);
    overflow: hidden;
}

/* Force header solid on this page */
.sa-page~.header,
.header {
    background-color: rgba(40, 26, 12, 0.92) !important;
    backdrop-filter: blur(12px);
}

/* ── Integrated Card Header ── */
.sa-card-header {
    margin: -24px -28px 20px;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
    padding: 22px 28px;
}

.sa-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #281a0c 0%, #3d200d 40%, #5a2d0e 100%);
    z-index: 0;
}

/* Decorative mesh overlay */
.sa-header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(248, 117, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 15% 80%, rgba(248, 117, 0, 0.08) 0%, transparent 40%);
    z-index: 1;
}

/* Subtle dot pattern */
.sa-header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 2;
}

.sa-header-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sa-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sa-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f87500, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(248, 117, 0, 0.35);
}

.sa-header-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.sa-header-content h1 {
    font-family: var(--heading-font, 'Rubik', sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    letter-spacing: -0.01em;
}

.sa-header-content p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sa-header-content p i {
    font-size: 0.72rem;
    color: #f87500;
}

.sa-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sa-header-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sa-header-chip>i {
    font-size: 1rem;
    color: #f87500;
}

.sa-header-chip .chip-label {
    display: block;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.sa-header-chip .chip-value {
    display: block;
    font-family: var(--heading-font, 'Rubik', sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.sa-header-chip-accent {
    background: linear-gradient(135deg, rgba(248, 117, 0, 0.2), rgba(234, 88, 12, 0.15));
    border-color: rgba(248, 117, 0, 0.3);
}

/* ── Main Content ── */
.sa-body {
    flex: 1;
    display: flex;
    padding: 20px 0;
    min-height: 0;
    /* allow flex child to shrink */
}

.sa-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── Section Labels ── */
.sa-section-label {
    font-family: var(--heading-font, 'Rubik', sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    color: #f87500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sa-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f0f0f0;
    margin-left: 8px;
}

/* ── Form Grid ── */
.sa-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 14px;
}

.sa-form-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

/* ── Form Fields ── */
.sa-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sa-field label .req {
    color: #ef4444;
}

.sa-field .form-control,
.sa-field .form-select {
    height: 36px;
    font-size: 0.82rem;
    padding: 4px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.sa-field .form-control:focus,
.sa-field .form-select:focus {
    border-color: #f87500;
    box-shadow: 0 0 0 3px rgba(248, 117, 0, 0.08);
    background: #fff;
    outline: none;
}

.sa-field .form-control::placeholder {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Validation */
.sa-field .field-validation-error {
    color: #ef4444;
    font-size: 0.65rem;
    margin-top: 1px;
    display: block;
    line-height: 1.2;
}

.sa-field .input-validation-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

/* ── Divider ── */
.sa-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 12px 0;
}

/* ── Upload Row ── */
.sa-upload-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.sa-upload-zone {
    flex: 1;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
    min-height: 56px;
}

.sa-upload-zone:hover {
    border-color: #f87500;
    background: #fffbf5;
}

.sa-upload-zone .file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.sa-upload-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sa-upload-icon i {
    font-size: 1.1rem;
    color: #f87500;
}

.sa-upload-text h6 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin: 0 0 2px;
}

.sa-upload-text p {
    font-size: 0.68rem;
    color: #94a3b8;
    margin: 0;
}

.sa-file-status {
    font-size: 0.72rem;
    color: #16a34a;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.sa-file-status.active {
    display: flex;
}

/* ── Submit Area ── */
.sa-submit-area {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sa-btn-submit {
    background: linear-gradient(135deg, #f87500, #ea580c);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--heading-font, 'Rubik', sans-serif);
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(248, 117, 0, 0.25);
}

.sa-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(248, 117, 0, 0.35);
}

.sa-secure-text {
    font-size: 0.7rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Alert Toasts ── */
.sa-alert {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sa-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sa-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .sa-page {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .sa-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sa-upload-row {
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .sa-form-grid {
        grid-template-columns: 1fr;
    }

    .sa-card {
        padding: 16px;
    }

    .sa-submit-area {
        flex-direction: column;
    }

    .sa-btn-submit {
        width: 100%;
        justify-content: center;
    }
}