
#cv-generator {
    padding: 5em 6em;
    display: flex;
    justify-content: center;
}

.generator-container {
    width: 100%;
    max-width: 420px; 
    color: #12609d;
}

.progress-wrapper {
    margin-bottom: 2em;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #d8e0ea;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    width: 20%; 
    height: 100%;
    background: #12609d;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 0.7em;
    font-size: 0.9em;
    color: #12609d;
}

.cv-form {
    display: flex;
    flex-direction: column;
}

.form-step {
    display: none;
    flex-direction: column;
    gap: 0.5em;
}

.form-step.active {
    display: flex;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    padding: 0.7em;
    border-radius: 8px;
    border: 1px solid #d8e0ea;
    font-size: 1em;
    margin-bottom: 1em;
    width: 100%;
    box-sizing: border-box;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: 0.95em;
}

/* Button */
#cv-generator .btn-primary {
    background: #fad02c;
    color: white;
    border: none;
    padding: 0.7em 1.4em;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.25s ease;
    align-self: center;
    margin-top: 0.5em;
    font-weight: 400;
}

#cv-generator .btn-primary:hover {
    background: #e8bb0a;
    transform: translateY(-1px);
}

input::placeholder {
    color: #4f94cd;      
    opacity: 0.7;           
    font-family: 'Montserrat', sans-serif; 
    font-size: 0.95em;    
}

/* -------------------------------- */
/* FIXED STEP 2 LAYOUT */
/* -------------------------------- */

.semi-question {
    display: flex;
    gap: 0.5em;
    width: 100%;
}

.semi-question .Q1 {
    width: 75%;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.semi-question .Q2 {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.form-disclaimer {
    font-size: 0.8em;
    color: #4f94cd;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 30ch;
    text-wrap: balance;
}

/* -------------------------------- */
/* RADIO AS WHITE BUTTONS */
/* -------------------------------- */

.mcq {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    align-items: center;
    margin-bottom: 0.5em;
}

.mcq p {
    margin-bottom: 0.8em;
    text-align: center;
}

.radio-option {
    background: white;
    border: 1px solid #d8e0ea;
    padding: 0.7em 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: center;
    text-align: center;
}

.radio-option:hover {
    border-color: #12609d;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option:has(input:checked) {
    background: #4f94cd;
    color: white;
    border-color: #4f94cd;
}

/* SKILLS GRID */

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5em;
    width: 100%;
}

/* Skill buttons */

.skills-grid .checkbox-option {
    background: white;
    border: 1px solid #d8e0ea;
    padding: 0.7em 1em; /* bigger button */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;  
    justify-content: center;
    text-align: center;
    font-size: 0.95em;
    color: #12609d;
}

.skills-grid .checkbox-option {
    margin-top: 0;
    margin-bottom: 0;
}

/* hide checkbox */

.skills-grid input[type="checkbox"] {
    display: none;
}

/* hover */

.skills-grid .checkbox-option:hover {
    border-color: #12609d;
}

/* selected */

.skills-grid .checkbox-option:has(input:checked) {
    background: #4f94cd;
    color: white;
    border-color: #4f94cd;
}

/* -------------------------------- */
/* SMALLER CHECKBOX TEXT */
/* -------------------------------- */

.checkbox-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.8em;
    color: #4f94cd;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    max-width: 60ch;
    text-wrap: balance;
    gap: 0.5em;
    margin-top: 1em;
    margin-bottom: 0.2em;
}

.checkbox-option input {
    flex-shrink: 0;
    margin-top: 0.2em;
}

.checkbox-option span {
    flex: 1;
    line-height: 1.4;
}

.checkbox-option a {
    color: #12609d; 
    text-decoration: none;
    display: inline;
    white-space: nowrap;
}

/* ===================================== */
/* MOBILE OPTIMIZATION */
/* ===================================== */

@media (max-width: 900px) {

    #cv-generator {
        padding: 2em 2em;  
    }

    .generator-container {
        max-width: 100%;
    }

    /* Make Step 2 stack vertically on mobile */
    .semi-question {
        flex-direction: column;
    }

    .semi-question .Q1,
    .semi-question .Q2 {
        width: 100%;
        gap: 0.5em;
    }

    /* Make radio buttons full width */
    .radio-option {
        width: 75%;
        min-width: unset;
        text-align: center;
        padding: 0.9em 1em;
        font-size: 1em;
    }

    /* Skills grid adjustments for phones */

.skills-grid {
    gap: 0.4em;
}

.skills-grid .checkbox-option {
    padding: 0.7em 0.1em;
    font-size: 0.9em;
}

    /* Improve tap area for checkbox */
    .checkbox-option {
        font-size: 0.85em;
        text-align: justify;
        max-width: 100%;
    }

    /* Bigger tap-friendly button */
    #cv-generator .btn-primary {
        width: 50%;
        padding: 1em;
        font-size: 1.1em;
    }

    /* Slightly larger inputs for thumbs */
    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        font-size: 1em;
        padding: 0.9em;
    }

    /* Improve spacing between steps */
    .form-step {
        gap: 0.8em;
    }

    .mcq {
        width: 100%;
    }

    .mcq p {
        text-align: center;
    }

}