/* ===================================================
   GLS INSCRIPTION (SCOPED) — ONE PAGE (NO STEPS)
=================================================== */
.gls-inscription-scope{
    --color-surface: #fffee8;
    --primary-1: #211e1d;
    --primary-2: #3e3832;
}

/* Background */
body{
    background-color: var(--light--off-white) !important;
}

/* Card */
.gls-inscription-scope .form-card{
    background: var(--color-surface);
    border-radius: 28px;
    padding: 56px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(33, 30, 29, 0.08);
}

.gls-inscription-scope .form-card::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102,126,234,.03) 0%, rgba(118,75,162,.03) 100%);
    pointer-events: none;
}

.gls-inscription-scope .decorative-element{
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light--off-black), var(--dark--off-black));
    opacity: 0.05;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.gls-inscription-scope .form-content{
    position: relative;
    z-index: 1;
}

/* Header */
.gls-inscription-scope .form-header{
    text-align: left;
    margin-bottom: 28px;
}

.gls-inscription-scope .form-title{
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--off-black), var(--light--off-black));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.gls-inscription-scope .form-subtitle{
    font-size: 15px;
    color: rgba(0,0,0,.55);
    margin: 0;
}

/* Section titles + divider */
.gls-inscription-scope .section-title{
    font-size: 14px;
    font-weight: 800;
    margin: 22px 0 14px;
    color: var(--off-black);
}

.gls-inscription-scope .divider{
    height: 1px;
    background: rgba(0,0,0,.10);
    margin: 26px 0;
}

/* Groups */
.gls-inscription-scope .form-group{
    margin-bottom: 18px;
}

.gls-inscription-scope label{
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--dark--off-black);
    margin-bottom: 10px;
}

.gls-inscription-scope .required{
    color: #ef4444;
    font-weight: 800;
}

/* Inputs */
.gls-inscription-scope input,
.gls-inscription-scope select,
.gls-inscription-scope textarea{
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border: 1.5px solid #d9e2ef;
    border-radius: 12px;
    background: #fff;
    color: var(--off-black);
}

.gls-inscription-scope input:hover,
.gls-inscription-scope select:hover,
.gls-inscription-scope textarea:hover{
    border-color: var(--light--off-black);
}

.gls-inscription-scope input:focus,
.gls-inscription-scope select:focus,
.gls-inscription-scope textarea:focus{
    outline: none;
    border-color: var(--primary-1);
    box-shadow: 0 0 0 4px rgba(33, 30, 29, 0.10);
}

.gls-inscription-scope input::placeholder,
.gls-inscription-scope textarea::placeholder{
    color: #94a3b8;
}

/* Readonly */
.gls-inscription-scope input[readonly]{
    background-color: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

.gls-inscription-scope input[readonly]:focus{
    box-shadow: none;
    border-color: #e5e7eb;
}

/* Date picker - editable, normal styling */
.gls-inscription-scope input.date-picker{
    background-color: #fff;
    color: var(--off-black);
    border-color: #d9e2ef;
    cursor: pointer;
}

.gls-inscription-scope input.date-picker:hover{
    border-color: var(--light--off-black);
}

.gls-inscription-scope input.date-picker:focus{
    outline: none;
    border-color: var(--primary-1);
    box-shadow: 0 0 0 4px rgba(33, 30, 29, 0.10);
}

/* Checkbox row */
.gls-inscription-scope .checkbox-row{
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
}

.gls-inscription-scope .checkbox-row input{
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 18px;
}

.gls-inscription-scope .link{
    color: var(--primary-1);
    text-decoration: underline;
    font-weight: 800;
}

/* Buttons */
.gls-inscription-scope .button-group{
    display: flex;
    gap: 14px;
    margin-top: 24px;
    justify-content: space-between;
    align-items: center;
}

.gls-inscription-scope .button{
    background-color: var(--off-black);
    color: var(--color-surface);
    border-radius: 8rem;
    padding: .75rem 1.6rem;
    font-weight: 800;
    transition: .25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.gls-inscription-scope .button:hover{
    background-color: var(--light--off-black);
    transform: translateY(-2px);
}

.gls-inscription-scope .button:active{
    background-color: var(--dark--off-black);
    transform: translateY(0);
}

.gls-inscription-scope .button-outline{
    background: transparent;
    color: var(--off-black);
    border: 1.5px solid rgba(0,0,0,.20);
}

.gls-inscription-scope .button-outline:hover{
    background: rgba(0,0,0,.06);
    transform: translateY(-2px);
}

/* Error + success */
.gls-inscription-scope .error-message{
    display: none;
    margin: 0 0 18px;
    padding: 16px 20px;
    font-size: 14px;
    color: #991b1b;
    font-weight: 600;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid #fca5a5;
    border-radius: 12px;
    border-left: 5px solid #dc2626;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.15);
    animation: shakeError 0.5s ease-in-out;
}

.gls-inscription-scope .error-message.active{
    display: flex;
    align-items: center;
    gap: 12px;
}

.gls-inscription-scope .error-message::before{
    content: "⚠";
    font-size: 20px;
    flex-shrink: 0;
}

/* Shake animation for errors */
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* Pulse glow effect */
.gls-inscription-scope .error-message.active {
    animation: shakeError 0.5s ease-in-out, pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(220, 38, 38, 0.15); }
    50% { box-shadow: 0 4px 25px rgba(220, 38, 38, 0.35); }
}

.gls-inscription-scope .success-message{
    display: none;
    text-align: center;
    margin-top: 22px;
}
.gls-inscription-scope .success-message.active{
    display: block;
}
.gls-inscription-scope .success-message h3{
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile */
@media (max-width: 575px){
    .gls-inscription-scope .form-card{
        padding: 24px !important;
        border-radius: 18px;
    }
    .gls-inscription-scope .decorative-element{
        width: 120px !important;
        height: 120px !important;
        top: -60px !important;
        right: -60px !important;
    }
    .gls-inscription-scope .form-title{
        font-size: 26px !important;
        line-height: 1.2;
    }
    .gls-inscription-scope .button-group{
        gap: 10px !important;
    }
    .gls-inscription-scope .button{
        width: 50%;
        padding: .8rem 1rem;
    }
}

/* Checkbox fix: prevent width:100% affecting it */
.gls-inscription-scope input[type="checkbox"]{
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    border-radius: 4px;
    flex: 0 0 18px;
    cursor: pointer;
    accent-color: var(--primary-1);
}

/* Row alignment */
.gls-inscription-scope .checkbox-row{
    display: flex;
    align-items: center;          /* ✅ centers checkbox with text */
    gap: 10px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--off-black);
}

/* Text block */
.gls-inscription-scope .checkbox-text{
    line-height: 1.25;
    display: inline-block;
}

/* Ensure checkbox doesn't stretch */
.gls-inscription-scope .checkbox-row input{
    margin: 0 !important;
}

/* ===================================================
   FLATPICKR DATE PICKER STYLES
=================================================== */

/* Highlight available dates */
.flatpickr-day.available-date {
    background: #1e88e5 !important;
    color: #fff !important;
    border-radius: 6px !important;
    border: none !important;
}

/* Selected and hover states */
.flatpickr-day.available-date.selected,
.flatpickr-day.available-date:hover {
    background: #0d47a1 !important;
    color: #fff !important;
}

/* Flatpickr calendar styling */
.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
}

.flatpickr-months {
    border-radius: 12px 12px 0 0;
    padding: 8px 0;
}

.flatpickr-months .flatpickr-month {
    color: #fff;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #fff;
    font-weight: 600;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #fff;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    fill: #e5e7eb;
}

.flatpickr-weekdays {
    background: #f9fafb;
}

.flatpickr-weekday {
    color: #6b7280;
    font-weight: 600;
}

.flatpickr-day {
    border-radius: 6px;
    transition: all 0.2s ease;
}

.flatpickr-day:hover {
    background: #f3f4f6;
}

.flatpickr-day.today {
    border-color: var(--primary-1, #211e1d);
}

.success-actions .button-outline {
    background: transparent !important;
    border: 2px solid #211e1d !important;
    color: #211e1d !important;
}