/* ==================================================
   CUSTOM MISSION FORM - MAIN CONTAINER
   ================================================== */
#custom-mission-form {
    max-width: 620px;
    height: 806px;
    margin: 60px auto;
    padding: 40px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: center;
    font-family: Arial, sans-serif;
}

/* ==================================================
   STEPS (Multi‑step navigation)
   ================================================== */
.step { 
    display: none; 
    position: relative;     /* anchor for absolute back button */
}
.step.active { 
    display: block; 
}

/* Push title and all following content down by 60px */
.step h2 {
    margin-top: 60px;
}

/* ==================================================
   BACK BUTTON (positioned absolutely)
   ================================================== */
.back-btn {
    position: absolute;
    top: -60px;             /* same as title margin-top */
    left: 20px;
    padding: 6px 12px;
    font-size: 14px;
    background: transparent;
    border: 1px solid #05294e;
    border-radius: 6px;
    color: #05294e;
    cursor: pointer;
    z-index: 10;
}
.back-btn:hover {
    background: #05294e;
    color: white;
}
.back-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================================================
   OPTIONS GRID (choice buttons)
   ================================================== */
.options {
    margin-top: 35px;
    display: grid;
    gap: 20px;
    justify-content: center;
}

/* Grid layouts – auto‑fit allows wrapping, max 3 columns on large screens */
.grid-2 { 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.grid-3 { 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.grid-3x2 { 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

/* ==================================================
   OPTION BUTTONS
   ================================================== */
.option {
    background: #05294e;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 25px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.25s;
    font-weight: bold;
}
.option img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);   /* makes icons white */
}
.option:hover {
    transform: translateY(-4px);
    background: #0a3a6b;
}

/* Selected state */
.option.selected {
    border: 2px solid #05294e;
    background-color: #e6f0ff;
    color: #05294e;
}
.option.selected img {
    filter: none;   /* show original icon colors */
}

/* Multi‑step specific (steps 3 & 4) */
.multi .option.selected,
.single .option.selected {
    background-color: #e6f0ff;
    border: 2px solid #05294e;
}

/* ==================================================
   NEXT BUTTON (Weiter)
   ================================================== */
.next-btn {
    margin-top: 25px;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: #05294e;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
.next-btn:hover {
    background: #0a3a6b;
}

/* ==================================================
   FORM INPUTS (step 6)
   ================================================== */
form input {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

/* ==================================================
   CHECKBOX CONTAINER & TERMS LINK
   ================================================== */
.checkbox-container {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
}
.checkbox-container label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.checkbox-container input {
    width: auto;
    margin: 0;
}

.terms-link {
    margin-left: 5px; 
    font-size: 14px;
    color: #05294e;
    text-decoration: underline;
    white-space: nowrap;
}
.terms-link:hover {
    color: #FF9E01;
}

/* ==================================================
   SUBMIT BUTTON (Absenden)
   ================================================== */
.submit-btn {
    width: 100%;
    margin-top: 25px;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: #05294e;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.submit-btn .btn-icon {
    color: #FF9E01;
}
.submit-btn:hover {
    background: #0a3a6b;
}
.submit-btn.disabled {
    background: #999;
    cursor: not-allowed;
}

/* ==================================================
   ERROR MESSAGES (custom validation popups are native)
   ================================================== */
.error-message {
    color: red;
    margin-top: 10px;
    font-size: 14px;
}

/* ==================================================
   SPINNER (step 5)
   ================================================== */
.spinner-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 40px auto;
}
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #eee;
    border-top: 6px solid #FF9E01;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}
.spinner-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: #FF9E01;
    display: none;
}

/* ==================================================
   MULTI‑CHOICE HINT (steps 3 & 4)
   ================================================== */
.multi-hint {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 20px;
    font-style: italic;
}

/* ==================================================
   HOME BUTTON (step 7)
   ================================================== */
.home-btn {
    margin-top: 25px;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: #05294e;
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.home-btn:hover {
    background: #0a3a6b;
}

/* ==================================================
   THANK YOU ICON (step 7)
   ================================================== */
.thankyou-icon {
    width: 120px;
    height: 120px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
}
.step[data-step="7"] h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}