/* Global Youth Masterclass Paris 2026 - Invitation Letter Application Styles */
.ahllf-container {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    max-width: 1100px;
    margin: 20px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.ahllf-step {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ahllf-step.active {
    display: block;
}

.grid {
    display: grid;
    gap: 16px;
    margin: 14px 0;
}

.grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.grid.three {
    grid-template-columns: repeat(3, 1fr);
}

label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #222;
}

input,
select,
textarea {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    background: white;
    color: black;
    outline: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

input:hover:not(.error),
select:hover:not(.error),
textarea:hover:not(.error) {
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(0);
}

/* Error states */
input.error,
select.error,
textarea.error {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1) !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-message {
    color: #e53e3e !important;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in;
}

/* Radio button styling - matching image */
.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    background: #f9fafb;
    transition: all 0.2s ease;
    color: #374151;
    min-width: 80px;
    justify-content: flex-start;
}

.radio-option:hover {
    border-color: #9ca3af;
    background: #f3f4f6;
}

.radio-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + span {
    font-weight: 500;
    color: #1f2937;
}

/* Radio group error styling */
.radio-group-error {
    border: 1px solid #e53e3e !important;
    border-radius: 6px;
    padding: 4px;
    background: rgba(229, 62, 62, 0.05);
}

.radio-group-error .radio-option {
    border-color: #e53e3e;
}

/* File input styling - matching image */
input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 15px;
    cursor: pointer;
    color: #374151;
}

input[type="file"]::-webkit-file-upload-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-right: 12px;
    transition: background 0.2s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: #2563eb;
}

input[type="file"]::file-selector-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-right: 12px;
    transition: background 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background: #2563eb;
}

/* File input helper text */
.file-input-helper {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
    display: block;
}

textarea {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
}

.actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.btn-prev,
.btn-next,
.btn-pay {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-prev:hover {
    transform: translateY(-2px);
    background: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-next {
    background: linear-gradient(135deg, #4c51bf, #667eea);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 81, 191, 0.3);
}

.btn-next:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(76, 81, 191, 0.4);
}

.btn-pay {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.terms-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid #e2e8f0;
}

.fee-box {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin: 24px 0;
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

/* Mobile devices (320px - 767px) */
@media (max-width: 767px) {
    .ahllf-container {
        margin: 10px;
        padding: 15px;
        border-radius: 12px;
    }

    .form-wrapper {
        padding: 20px;
        border-radius: 12px;
    }

    .form-header h1 {
        font-size: 1.5rem !important;
    }

    .form-header p {
        font-size: 0.9rem !important;
    }

    /* Stepper responsive - Vertical list style for mobile */
    .ahllf-stepper {
        flex-direction: column !important;
        gap: 16px;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    /* Hide progress bar on mobile */
    .ahllf-stepper > div[style*="position:absolute"][style*="height:3px"] {
        display: none !important;
    }

    #stepperProgress {
        display: none !important;
    }

    .step-item {
        flex-direction: row !important;
        gap: 12px;
        align-items: center;
        width: 100%;
        min-width: auto;
    }

    .step-number {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
        margin-bottom: 0 !important;
        border: 2px solid white !important;
        flex-shrink: 0;
    }

    /* Done steps - Green */
    .step-item.done .step-number {
        background: #48bb78 !important;
        color: white !important;
    }

    .step-item.done .step-label {
        color: #48bb78 !important;
        font-weight: 600 !important;
    }

    /* Active step - Dark blue/purple */
    .step-item.active .step-number {
        background: #4c51bf !important;
        color: white !important;
        transform: none !important;
    }

    .step-item.active .step-label {
        color: #4c51bf !important;
        font-weight: 700 !important;
    }

    /* Future steps - Light gray */
    .step-item:not(.active):not(.done) .step-number {
        background: #e2e8f0 !important;
        color: #a0aec0 !important;
    }

    .step-item:not(.active):not(.done) .step-label {
        color: #a0aec0 !important;
        font-weight: 500 !important;
    }

    .step-label {
        font-size: 0.9rem !important;
        text-align: left !important;
    }

    /* All grids become single column */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .grid.two,
    .grid.three {
        grid-template-columns: 1fr;
    }

    /* Radio buttons stack on mobile */
    .radio-option {
        flex: 1;
        min-width: 0;
    }

    /* Buttons full width on mobile */
    .btn-prev,
    .btn-next,
    .btn-pay {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Button containers */
    [style*="justify-content:space-between"] {
        flex-direction: column !important;
    }

    [style*="justify-content:flex-end"] {
        flex-direction: column !important;
    }

    /* Input fields */
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* About section */
    [style*="padding:32px"] {
        padding: 20px !important;
    }

    /* Success alert */
    #gymparis-invitation-success-alert {
        padding: 16px !important;
    }

    /* Terms section */
    [style*="padding:24px"] {
        padding: 16px !important;
    }

    /* Event dates - stack on mobile */
    .form-header p {
        display: block !important;
    }

    /* Stepper progress line */
    .ahllf-stepper {
        position: relative;
    }

    /* Step numbers smaller on mobile */
    .step-number {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }
}

/* Tablet devices (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .ahllf-container {
        margin: 15px;
        padding: 20px;
    }

    .form-wrapper {
        padding: 30px;
    }

    .step-label {
        font-size: 0.75rem !important;
    }

    /* 2-column grids stay 2-column on tablet */
    /* 3-column grids become 2-column */
    [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Large screens (1440px+) */
@media (min-width: 1440px) {
    .ahllf-container {
        max-width: 1200px;
    }
}

