.page-hero.preinscription-hero {
    --hero-image: url('../images/hero/preinscription.jpg');
    margin-top: 0;
}

.preinscription-container {
    max-width: 680px;
    margin: 0 auto;
}

.form-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 48, 135, 0.10);
    border: 1px solid rgba(24, 3, 145, 0.05);
    padding: 2rem 2.25rem 2.25rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.form-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.form-header h2 {
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
}

.form-section {
    margin-bottom: 1.8rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--light-gray);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 1.05rem;
    color: var(--blue);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.form-section-title .icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), #f0c800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

.form-section-title .icon svg {
    width: 15px;
    height: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
}

.form-row.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
}

.form-group label .required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: var(--font-secondary);
    transition: var(--transition-fast);
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.form-control.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* File upload */
.file-upload-zone {
    border: 2px dashed var(--light-gray);
    border-radius: 12px;
    padding: 1.4rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.file-upload-zone:hover {
    border-color: var(--gold);
    background-color: rgba(255, 215, 0, 0.05);
}

.file-upload-zone.dragover {
    border-color: var(--gold);
    background-color: rgba(255, 215, 0, 0.1);
}

.file-upload-zone.has-file {
    border-color: var(--blue);
    background-color: rgba(0, 48, 135, 0.05);
}

.file-upload-zone input[type="file"] {
    display: none;
}

.file-upload-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--light-gray);
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

.file-upload-icon svg {
    width: 28px;
    height: 28px;
}

.file-upload-text {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.85rem;
    color: #777;
}

.file-list {
    margin-top: 1rem;
    text-align: left;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.file-item span {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.file-item button {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 0.25rem;
}

/* Submit */
.form-submit {
    text-align: center;
    margin-top: 1.4rem;
}

.form-submit .btn {
    min-width: 240px;
    padding: 0.8rem 2.2rem;
    font-size: 0.95rem;
}

/* Success message */
.success-section {
    display: none;
    text-align: center;
    padding: 3rem 0;
}

.success-section.visible {
    display: block;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.success-icon svg {
    width: 50px;
    height: 50px;
}

.success-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #27ae60;
}

.success-message {
    color: #666;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Info box */
.info-box {
    background: rgba(0, 48, 135, 0.05);
    border-left: 4px solid var(--blue);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 2rem;
}

.info-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-box p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 992px) {
    .form-row.three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-row,
    .form-row.three-cols {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .form-card {
        padding: 2rem;
        margin: -4rem 1rem 0;
    }
}