/* missionform.css - Refactored with Flexbox Architecture */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
    body {
        background: #1a2332;
        color: #e0e0e0;
        font-family: 'Inter', sans-serif;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    .back-link {
        color: #d4a574;
        text-decoration: none;
        display: inline-block;
        margin-bottom: 20px;
    }

    .back-link:hover {
        color: #e8c89a;
    }

    .page-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .section-title {
        color: #d4a574;
        font-family: 'Oswald', sans-serif;
        font-size: 2.5em;
        font-weight: 700;
        margin: 0;
    }

    .section-divider {
        width: 100px;
        height: 3px;
        background: #d4a574;
        margin: 15px auto;
    }

    .page-subtitle {
        color: #b0b0b0;
        font-size: 1.1em;
    }

    .squadron-patch {
        width: 100px;
        height: auto;
        opacity: 0.9;
        transition: opacity 0.3s ease;
    }

    .squadron-patch:hover {
        opacity: 1;
    }

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: start;
}

.header-text {
    /* middle column */
}

.header-buttons {
    text-align: right;
}

.header-buttons .btn {
    display: inline-block;
    margin-left: 10px;
}
/* ===========================
    FORM LAYOUT ARCHITECTURE
    =========================== */

/* Main form grid - keeps vertical labels on left */
.mission-form {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 40px;
    row-gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    font-size: 1.0em;
}

/* Vertical Section Labels */
.section-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    color: #d4a574;
    letter-spacing: 3px;
    padding: 20px 10px 20px 20px;
    transform: rotate(180deg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #d4a574;
}

/* Section Content - Simple vertical stack */
.section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 40px;
}

/* Form Row - Side-by-side container */
.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

/* Individual Form Field */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===========================
    WIDTH UTILITY CLASSES
    =========================== */

/* Percentage-based widths - flexible (can grow to fill space) */
.w-full { flex: 1 1 100%; }
.w-1-2 { flex: 1 1 50%; }
.w-1-3 { flex: 1 1 33.333%; }
.w-2-3 { flex: 1 1 66.666%; }
.w-1-4 { flex: 1 1 25%; }
.w-3-4 { flex: 1 1 75%; }

/* Fixed-width utilities */
.w-xs { flex: 0 0 120px; }
.w-sm { flex: 0 0 180px; }
.w-md { flex: 0 0 280px; }
.w-lg { flex: 0 0 380px; }
.w-xl { flex: 0 0 480px; }

/* ===========================
    FORM ELEMENTS
    =========================== */

/* Labels */
label {
    color: #d4a574;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Coming Soon labels - grayed out */
label.coming-soon {
    color: #707070;
}

/* Form Controls */
select, textarea {
    width: 100%;
    background: #2a3545;
    border: 1px solid #3a4555;
    color: #e0e0e0;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
}

select:focus, textarea:focus {
    outline: none;
    border-color: #d4a574;
}

select:disabled, textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* ===========================
    SPECIAL FIELD TYPES
    =========================== */

/* Throw-in section with checkboxes */
.form-group.throw-in {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.throw-in-label {
    color: #d4a574;
    font-weight: 600;
    white-space: nowrap;
    padding-top: 8px;
}

/* Gray out coming soon throw-in labels */
.throw-in-label.coming-soon {
    color: #707070;
}

.checkbox-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.checkbox-item label {
    color: #e0e0e0;
    cursor: pointer;
    margin: 0;
}

.checkbox-item.disabled label {
    color: #707070;
    cursor: not-allowed;
}

/* ===========================
    VISUAL FEEDBACK
    =========================== */

/* Highlight fields that will change */
.form-group.will-change {
    animation: pulse 1s ease-in-out infinite;
}

.form-group.will-change select {
    border-color: #ff6b6b;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Skill level warning */
.skill-warning {
    color: #ff9800;
    font-size: 0.8em;
    font-weight: normal;
    display: none;
    position: absolute;
    margin-left: 10px;
    white-space: nowrap;
}

.skill-warning.show {
    display: inline;
    animation: pulse 1s ease-in-out infinite;
}


/* Warning Messages */
.warning-message {
    color: #ff9800;
    font-size: 0.85em;
    font-weight: normal;
    display: none;
    margin-top: 5px;
}

.warning-message.show {
    display: block;
}

/* ===========================
    BUTTONS
    =========================== */

.btn, a.btn-primary, a.btn-secondary, .btn-primary, .btn-secondary{
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #d4a574;
    color: #1a2332;
}

.btn-primary:hover {
    background: #e8c89a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 165, 116, 0.3);
}

.btn-secondary {
    background: #3a4555;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: #4a5565;
}

/* ===========================
    RESULT BOX
    =========================== */

.result-box {
    background: #2a3545;
    border: 2px solid #d4a574;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    display: none;
}

.result-box.show {
    display: block;
}

.result-title {
    color: #d4a574;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
}

.result-item {
    color: #e0e0e0;
    margin: 10px 0;
    padding: 5px 0;
}

.result-item strong {
    color: #d4a574;
    margin-right: 10px;
}

.download-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #d4a574;
    color: #1a2332;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: #e8c89a;
    transform: translateY(-2px);
}

/* Generating indicator */
.generating-indicator {
    display: block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #3a4555;
    color: #e0e0e0;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Success box - appears below the two main buttons */
.success-box {
    display: block;
    margin-top: 10px;
    padding: 6px 12px;  /* Reduced from 8px 15px */
    background: #2a3545;
    border: 1px solid #4caf50;
    border-radius: 4px;
}

.success-text {
    display: inline-block;
    color: #4caf50;
    font-weight: 500;
    font-size: 0.85em;
    margin-right: 10px;  /* Reduced from 12px */
}

.btn-small {
    display: inline-block;
    padding: 4px 10px;  /* Reduced from 5px 12px */
    font-size: 0.8em;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #2a3545;
    border: 3px solid #d4a574;
    border-radius: 8px;
    padding: 40px;
    max-width: 600px;
    text-align: center;
}

.modal-box h2 {
    color: #4caf50;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.mission-details {
    text-align: left;
    margin: 20px 0 30px 0;
    padding: 20px;
    background: #1a2332;
    border-radius: 4px;
}

.mission-details div {
    margin: 10px 0;
    color: #e0e0e0;
}

.mission-details strong {
    color: #d4a574;
    margin-right: 10px;
}

.modal-buttons {
    margin: 20px 0;
}

.modal-warning {
    color: #ff9800;
    font-size: 0.85em;
    margin-top: 15px;
}