/* =============================================
   SECTION: CV UPLOAD AREA (#apply-CV)
   ============================================= */

#apply-CV {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 5em 6em;
    gap: 4em;
    text-align: center;
}

.apply-container {
    display: flex;
    align-items: center;
    gap: 4em;
}

/* Image */
#apply-CV img {
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.apply-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.8em;
    text-align: left;
    color: #12609d;
}

/* ===== FILE UPLOAD MODERN ===== */

.file-upload {
    width: 100%;
    cursor: pointer;
}

/* Hide default input */
.file-upload input[type="file"] {
    display: none;
}

.file-upload-box.has-file {
    border-color: #28a745;
    background: #eafaf1;
}

.file-upload-box {
    border: 2px dashed #4f94cd;
    border-radius: 12px;
    padding: 0.7em 1.5em;
    text-align: center;
    background: #f7fbff;
    transition: all 0.25s ease;
    position: relative;
}

/* Hover effect */
.file-upload:hover .file-upload-box {
    border-color: #12609d;
    background: #eef6fd;
    transform: translateY(-2px);
}

/* Main text */
.upload-main {
    font-weight: 600;
    color: #12609d;
    margin-bottom: 0.2em;
}

/* Info text */
.upload-info {
    font-size: 0.8em;
    opacity: 0.6;
}

/* Selected file name */
.file-name {
    font-size: 0.85em;
    font-weight: 600;
    color: #12609d;
}

.remove-file {
    display: none;
    margin-top: 0.5em;
    background: none;
    border: none;
    color: #cc50bd;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85em;
}

.remove-file:hover {
    text-decoration: underline;
}

.file-upload-box.drag-over {
    border-color: #cc50bd;
    background: #fdf0fb;
    transform: scale(1.02);
}

/* ===== FORM POLISH ===== */

#apply-CV form {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

/* Inputs */
#apply input,
#apply textarea {
    width: 100%;
    padding: 0.8em 1em;
    border-radius: 8px;
    border: 1px solid #d9e3f0;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

/* Focus effect */
#apply input:focus,
#apply textarea:focus {
    outline: none;
    border-color: #4f94cd;
    box-shadow: 0 0 0 3px rgba(79,148,205,0.15);
}

/* Checkbox */
.checkbox {
    font-size: 0.85em;
    text-align: left;
    width: 100%;
}

/* Submit button */
.btn-primary {
    background: #cc50bd;
    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: flex-start;
    font-weight: 400;
}

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

#apply-CV .checkbox a {
    color: inherit;
    text-decoration: underline;
    font-weight: normal;
}

#apply-CV .checkbox a:hover {
    opacity: 0.8;
}

#apply-CV p,
#apply-CV label {
    max-width: none;
}

/* =============================================
   SECTION: CV-GENERATOR (#cv-generator)
   ============================================= */

#cv-generator {
    display: flex;
    justify-content: center;
    padding: 5em 6em;
    background-color: #12609d;
    color: white;
}

.generator-container {
    width: 85%;
    display: flex;
    flex-direction: column;
    gap: 1.8em;
    align-items: center;
}

#cv-generator h1 {
    text-align: center;
}

#cv-generator p {
    align-self: center;
    text-align: center;
    max-width: 55ch;
    text-wrap: balance;
}

#cv-generator a {
    text-decoration: underline;
    color: white;
}

/* Secondary button (quick application) */
#cv-generator .btn-secondary {
    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;
    font-weight: 400;
}

#quick-application .btn-secondary:hover {
    background: #e8bb0a;
    transform: translateY(-1px);
}

/* =============================================
   MEDIA QUERIES – Mobile & Tablet Responsiveness
   ============================================= */

@media (max-width: 900px) {
    #apply-CV, #cv-generator {
        padding: 2em 2em;         
    }

    #apply-CV {
        flex-direction: column;    
        gap: 2.5em;
    }

    #apply-CV img {
        max-width: 80%;        
        aspect-ratio: 16 / 9;
    }

    .apply-container {
        flex-direction: column;
        gap: 1.8em;
    }

    .apply-text {
    text-align: center;
}

    .form-row,
    .last-row {
        grid-template-columns: 1fr;  
        gap: 1.2em;               
    }

    .checkbox input[type="checkbox"],
    .side-checkbox input[type="checkbox"] {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
        margin-top: 0.2em;      
    }

    .btn-primary,
    #quick-application .btn-secondary {
        padding: 0.9em 1em;
        font-size: 1.1em;
        align-self: center;        
    }

    .upload-main {
        font-size: 1em;
    }

    .upload-info {
        font-size: 0.75em;
    }
}

