
/* All your existing CSS remains the same */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1f8843;
    --primary-dark: #186634;
    --accent: #ffffff;
    --deep-green: #0b3d22;
    --surface-green: rgba(255,255,255,0.10);
    --light: #ffffff;
    --dark: #333333;
    --gray: #f5f5f5;
    --text-muted: rgba(255, 255, 255, 0.8);
}

body {
    display: flex;
    min-height: 100vh;
    background-color: var(--primary);
    overflow-x: hidden;
}

.image-section {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
}

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: var(--light);
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.3s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.event-details {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.event-details div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.indicator.active {
    background: var(--accent);
    transform: scale(1.2);
}

.form-section {
    width: 50%;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--light);
    transition: all 0.5s ease;
}

.form-container {
    width: 100%;
    max-width: 450px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo{
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    display: inline-block;
}

.logo img{
    width: 250px;
    height: auto;
}

.profile-logo{
    z-index: 1;
    padding: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-logo img{
    width: 250px;
    height: auto;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

input, select {
    width: 100%;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--light);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--light);
    background: rgba(255, 255, 255, 0.2);
}

input::placeholder {
    color: var(--text-muted);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 16px 44px 16px 20px;
    color: var(--light);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid var(--accent);
    border-radius: 8px;
    font-size: 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:focus {
    outline: none;
    border-color: var(--light);
    background-color: rgba(255, 255, 255, 0.568);
}

select::-ms-expand {
    display: none;
}

select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--light);
}

option {
    background: #fff;
    color: #333;
    padding: 8px 12px;
}

select {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

select:focus {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

option {
    background: #ffffff3a;
    color: #222222;
    padding: 8px 12px;
}

option:hover,
option:focus {
    background: #f2f2f2a4;
}

option:checked {
    background: var(--accent);
    color: var(--dark);
}

optgroup {
    color: rgba(0,0,0,0.65);
    font-weight: 700;
    background: #f8f8f8;
    padding: 6px 12px;
}

@media (max-width: 480px) {
    select {
        background-color: rgba(255,255,255,0.14);
        font-size: 15px;
    }
    option { font-size: 15px; }
}

optgroup {
    color: rgba(0,0,0,0.65);
    font-weight: 600;
}

.btn {
    width: 100%;
    padding: 16px;
    background: var(--light);
    color: var(--primary);
    border: none;
    background: var(--accent); color: var(--dark);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.button-group .btn {
    flex: 1;
    margin-top: 0;
}

.terms {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    opacity: 0.8;
}

.terms a {
    color: var(--light);
    text-decoration: underline;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.form-step.active {
    display: flex;
}
.step-content{
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.payment-option {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgb(255, 255, 255);
    color: #0c441d;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.payment-option:hover {
    border-color: var(--light);
    background: rgba(255, 255, 255, 0.15);
}

.payment-option img{
    width: 40px;
}
.mastercard img{
    width: 50px;
}

.payment-option.selected {
    border-color: var(--accent);
    background: #ffffff;
}

.payment-option i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.payment-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.payment-info i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.success-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.registration-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    width: 100%;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    width: 100%;
}

.tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.tab {
    padding: 10px 20px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tab.active {
    background-color: var(--light);
    color: var(--primary);
}

.dashboard-box {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.add-btn {
    background-color: var(--accent);
    color: var(--dark);
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 20px;
    float: right;
}

.participant-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.participant {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    width: 100%;
}

.controls button {
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 5px;
}

.edit-btn {
    background-color: var(--accent);
    color: var(--dark);
}

.delete-btn {
    background-color: #ffb4b4;
    color: darkred;
}

@media (max-width: 1024px) {
    h1, .slide h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .image-section, .form-section {
        width: 100%;
        min-height: 50vh;
    }
    
    .image-section {
        min-height: 29vh;
    }
    
    .form-section {
        padding: 40px 20px;
    }
    
    .form-container {
        width: 90%;
    }

    .slide-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    h1, .slide h2 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    input, select, .btn {
        padding: 14px 16px;
    }
    
    .form-section {
        padding: 25px 15px;
    }

    .event-details {
        flex-direction: column;
        gap: 10px;
    }
}

.step-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

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

.spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 5px solid white;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.loading-details {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    max-width: 300px;
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
    background: var(--light);
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 100%;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast.success {
    background-color: #2ecc71;
    border-left: 4px solid #27ae60;
}

.toast.error {
    background-color: #e74c3c;
    border-left: 4px solid #c0392b;
}

.toast.warning {
    background-color: #1f8843;
    border-left: 4px solid #ffffff;
}

.toast.info {
    background-color: #3498db;
    border-left: 4px solid #2980b9;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.9rem;
    opacity: 0.9;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.7);
    width: 100%;
    transform-origin: left;
    animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        max-width: 100%;
    }
}

/* Progress indicator */
.progress-container {
    width: 100%;
    margin-bottom: 30px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
    z-index: 1;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
    transition: width 0.3s ease;
    z-index: 2;
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: var(--accent);
    color: var(--dark);
}

.step-indicator.completed {
    background: var(--accent);
    color: var(--dark);
}

.step-label {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8);
}

.step-indicator.active .step-label {
    color: var(--accent);
    font-weight: bold;
}


/* Final Green + White Polish Theme */
body {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.16), transparent 32%), linear-gradient(135deg, #0b3d22 0%, #166b37 45%, #1f8843 100%);
}
.slide::after {
    background: linear-gradient(180deg, rgba(4,24,13,0.22), rgba(4,24,13,0.62)), linear-gradient(90deg, rgba(11,61,34,0.20), transparent 60%);
}
.logo {
    z-index: 4; background: rgba(255,255,255,0.92); border: 1px solid rgba(255,255,255,0.90); box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}
.form-section {
    background: radial-gradient(circle at 80% 10%, rgba(255,255,255,0.18), transparent 30%), linear-gradient(160deg, #0c4727 0%, #166b37 55%, #1f8843 100%); position: relative;
}
.form-section::before {
    content: ''; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,0.13); border-radius: 28px; pointer-events: none;
}
.form-container {
    max-width: 500px; padding: 34px; border-radius: 28px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 24px 70px rgba(0,0,0,0.18); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.form-container > h2, .form-step h2, .form-step h3 { letter-spacing: -0.02em; color: #ffffff; }
.form-container > h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.1; margin-bottom: 4px; }
input, select {
    background: rgba(255,255,255,0.12) !important; border: 1px solid rgba(255,255,255,0.34) !important; color: #ffffff; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 24px rgba(0,0,0,0.08);
}
input:hover, select:hover { border-color: rgba(255,255,255,0.62) !important; background: rgba(255,255,255,0.16) !important; }
input:focus, select:focus { border-color: #ffffff !important; background: rgba(255,255,255,0.18) !important; box-shadow: 0 0 0 4px rgba(255,255,255,0.13), 0 16px 34px rgba(0,0,0,0.14); }
input::placeholder { color: rgba(255,255,255,0.78); }
option, optgroup { background: #ffffff; color: #0b3d22; }
option:checked { background: #1f8843; color: #ffffff; }
.btn, .add-btn {
    background: #ffffff !important; color: #126032 !important; border: 1px solid rgba(255,255,255,0.88) !important; border-radius: 14px; box-shadow: 0 14px 30px rgba(0,0,0,0.16); letter-spacing: 0.01em;
}
.btn:hover, .add-btn:hover { background: rgba(255,255,255,0.92) !important; color: #0b3d22 !important; transform: translateY(-2px); box-shadow: 0 18px 38px rgba(0,0,0,0.20); }
.btn-secondary { background: rgba(255,255,255,0.08) !important; color: #ffffff !important; border-color: rgba(255,255,255,0.42) !important; box-shadow: none; }
.btn-secondary:hover { background: rgba(255,255,255,0.16) !important; color: #ffffff !important; }
.payment-methods { gap: 14px; }
.payment-option {
    min-height: 68px; background: rgba(255,255,255,0.94); color: #0b3d22; border: 2px solid rgba(255,255,255,0.72); border-radius: 16px; box-shadow: 0 12px 28px rgba(0,0,0,0.13);
}
.payment-option:hover { background: #ffffff; border-color: #ffffff; transform: translateY(-2px); }
.payment-option.selected { background: #0b3d22 !important; color: #ffffff; border-color: #ffffff; box-shadow: 0 0 0 4px rgba(255,255,255,0.16), 0 18px 38px rgba(0,0,0,0.22); }
.payment-info, .registration-details, .dashboard-box { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
.success-icon, .step-indicator.active, .step-indicator.completed { background: #ffffff !important; color: #126032 !important; box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.progress-bar, .indicator.active { background: #ffffff !important; }
.step-indicator.active .step-label { color: #ffffff; }
.error-message { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.36); color: #ffffff; border-radius: 14px; }
.spinner { border-color: rgba(255,255,255,0.25); border-top-color: #ffffff; }
.toast.success, .toast.info, .toast.warning, .toast.error { background: #0b3d22; border-left: 4px solid #ffffff; }
.participant { border-radius: 14px; box-shadow: 0 12px 28px rgba(0,0,0,0.10); }
.edit-btn, .delete-btn { background: #126032 !important; color: #ffffff !important; }
.terms, .terms a { color: rgba(255,255,255,0.84); }
@media (max-width: 768px) { .form-section::before { inset: 10px; border-radius: 22px; } .form-container { width: 100%; padding: 26px 18px; border-radius: 22px; } .logo img, .profile-logo img { width: 190px; } }


/* Mobile-first registration redesign - green + white only */
:root {
    --primary: #1f8843;
    --primary-dark: #126032;
    --primary-deep: #0b3d22;
    --primary-soft: #eaf7ee;
    --page-bg: #f7fbf8;
    --card-bg: #ffffff;
    --line: #dceee3;
    --text-main: #123d24;
    --text-soft: #6e8375;
    --accent: #ffffff;
    --light: #ffffff;
    --dark: #123d24;
    --text-muted: rgba(255, 255, 255, 0.82);
}

html { min-height: 100%; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: var(--page-bg); }
.mobile-brand { display: none; }
.registration-heading { width: 100%; text-align: center; }
.registration-kicker {
    display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.92);
    font-size: 12px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 12px;
}
.registration-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.08; color: #ffffff; letter-spacing: -0.04em; }
.registration-heading p { margin-top: 10px; color: rgba(255, 255, 255, 0.78); font-size: 14px; line-height: 1.5; }
.progress-container { width: 100%; margin: 0 0 8px; }
.progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: rgba(255, 255, 255, 0.9); font-size: 13px; font-weight: 700; }
.progress-track { width: 100%; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.progress-fill { width: 0; height: 100%; background: #ffffff; border-radius: inherit; transition: width 0.3s ease; }
.progress-steps { display: flex; justify-content: space-between; gap: 8px; position: static; margin: 14px 0 0; }
.progress-steps::before, .progress-bar { display: none !important; }
.step-indicator { width: auto; height: auto; flex: 1; min-width: 0; border-radius: 12px; padding: 8px 6px; background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.76); display: flex; flex-direction: column; gap: 4px; box-shadow: none; }
.step-number { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: currentColor; font-size: 12px; margin: 0 auto; }
.step-label { position: static; transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; font-size: 10px; line-height: 1.2; max-width: 100%; }
.step-indicator.active, .step-indicator.completed { background: #ffffff !important; border-color: #ffffff; color: var(--primary-dark) !important; box-shadow: 0 10px 24px rgba(0,0,0,0.14); }
.step-indicator.active .step-label, .step-indicator.completed .step-label { color: var(--primary-dark) !important; }
.form-step { gap: 14px; }
.step-content { width: 100%; }
.form-step h2, .form-step h3 { color: #ffffff; letter-spacing: -0.03em; }
input, select { min-height: 54px; border-radius: 15px; font-size: 16px; }
.btn { min-height: 54px; border-radius: 15px; font-size: 15px; font-weight: 800; }
.payment-option { min-height: 74px; border-radius: 18px; padding: 12px; }
.payment-option.selected { background: var(--primary-deep) !important; color: #ffffff !important; border-color: #ffffff !important; }
.payment-info, .registration-details, .secure-payment-card { background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 20px; padding: 18px; margin: 16px 0; color: #ffffff; }
.secure-payment-row { display: flex; align-items: center; gap: 12px; }
.secure-payment-row i, .payment-info i { color: #ffffff !important; }
.success-icon { background: #ffffff !important; color: var(--primary-dark) !important; }
.error-message { background: rgba(255, 255, 255, 0.14) !important; border: 1px solid rgba(255, 255, 255, 0.36) !important; color: #ffffff !important; border-radius: 15px !important; line-height: 1.45; }
.toast.success, .toast.info, .toast.warning, .toast.error { background: var(--primary-deep) !important; border-left-color: #ffffff !important; }

@media (min-width: 769px) {
    body { display: flex; background: radial-gradient(circle at top left, rgba(255,255,255,0.16), transparent 32%), linear-gradient(135deg, #0b3d22 0%, #166b37 45%, #1f8843 100%); }
    .image-section { display: block; width: 50%; min-height: 100vh; }
    .form-section { width: 50%; min-height: 100vh; padding: 40px; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,0.18), transparent 30%), linear-gradient(160deg, #0c4727 0%, #166b37 55%, #1f8843 100%); }
    .form-container { max-width: 520px; padding: 34px; border-radius: 30px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}

@media (max-width: 768px) {
    body { display: block; background: var(--page-bg); overflow-x: hidden; }
    .image-section { display: none !important; }
    .form-section { width: 100%; min-height: 100vh; justify-content: flex-start; align-items: center; padding: 16px 14px 26px; color: var(--text-main); background: linear-gradient(180deg, var(--primary-deep) 0%, var(--primary) 178px, var(--page-bg) 178px, var(--page-bg) 100%); }
    .form-section::before { display: none; }
    .form-container { width: 100%; max-width: 520px; gap: 18px; padding: 20px 16px 18px; margin: 0 auto; border-radius: 26px; background: #ffffff; border: 1px solid rgba(18, 96, 50, 0.08); box-shadow: 0 18px 50px rgba(10, 73, 34, 0.18); color: var(--text-main); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .mobile-brand { display: flex; justify-content: center; align-items: center; width: 100%; margin: 2px 0 2px; }
    .mobile-brand img { width: min(190px, 72vw); height: auto; }
    .registration-kicker { background: var(--primary-soft); border-color: var(--line); color: var(--primary-dark); }
    .registration-heading h2, .form-step h2, .form-step h3 { color: var(--text-main) !important; }
    .registration-heading h2 { font-size: clamp(1.35rem, 8vw, 1.85rem); }
    .registration-heading p { color: var(--text-soft); font-size: 13px; }
    .progress-meta { color: var(--text-main); }
    .progress-track { background: #e3f1e8; }
    .progress-fill { background: var(--primary); }
    .progress-steps { display: none; }
    input, select { background: #f8fbf9 !important; border: 1px solid #d8eadf !important; color: var(--text-main) !important; box-shadow: none !important; }
    input::placeholder { color: #7b9183 !important; }
    input:focus, select:focus { background: #ffffff !important; border-color: var(--primary) !important; box-shadow: 0 0 0 4px rgba(31, 136, 67, 0.12) !important; }
    .btn, .add-btn { background: var(--primary) !important; color: #ffffff !important; border-color: var(--primary) !important; box-shadow: 0 12px 28px rgba(31, 136, 67, 0.22) !important; }
    .btn:hover, .add-btn:hover { background: var(--primary-dark) !important; color: #ffffff !important; }
    .btn-secondary { background: #ffffff !important; color: var(--primary-dark) !important; border-color: var(--line) !important; box-shadow: none !important; }
    .button-group { gap: 10px; margin-top: 14px; position: sticky; bottom: 0; background: #ffffff; padding-top: 10px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 30; }
    .payment-methods { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .payment-option { min-height: 76px; background: #ffffff !important; border: 1px solid var(--line) !important; color: var(--text-main) !important; box-shadow: 0 8px 22px rgba(10, 73, 34, 0.08) !important; }
    .payment-option.mastercard { grid-column: span 2 !important; }
    .payment-option.selected { background: var(--primary-soft) !important; color: var(--primary-deep) !important; border-color: var(--primary) !important; box-shadow: 0 0 0 4px rgba(31, 136, 67, 0.12) !important; }
    .payment-info, .registration-details, .secure-payment-card { background: #f8fbf9 !important; border: 1px solid var(--line) !important; color: var(--text-main) !important; box-shadow: none !important; }
    .secure-payment-row i, .payment-info i { color: var(--primary) !important; }
    .success-icon { background: var(--primary) !important; color: #ffffff !important; }
    .terms, .terms a { color: var(--text-soft) !important; }
    .loading-text { color: var(--text-main); }
    .loading-details { color: var(--text-soft); }
    .spinner { border-color: #d8eadf; border-top-color: var(--primary); }
    .error-message { background: #f4faf6 !important; border-color: #cfe7d7 !important; color: var(--primary-deep) !important; }
    .toast-container { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); right: 12px; left: 12px; }
    .toast { transform: translateY(120px); border-radius: 16px; }
    .toast.show { transform: translateY(0); }
    .toast.hide { transform: translateY(120px); }
}

@media (max-width: 430px) {
    .form-section { padding-left: 10px; padding-right: 10px; }
    .form-container { padding: 18px 13px; border-radius: 23px; }
    .button-group { flex-direction: column-reverse; }
    .button-group .btn { width: 100%; }
    .payment-option img { width: 34px; }
    .mastercard img { width: 42px; }
}



/* Payment method UX fix: strong normal, hover, selected, and pressed states */
.payment-methods {
    align-items: stretch;
}

.payment-option {
    position: relative;
    min-height: 78px;
    gap: 10px;
    background: #ffffff !important;
    color: var(--primary-deep) !important;
    border: 2px solid rgba(255,255,255,0.78) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.14) !important;
    transform: translateY(0) scale(1);
    user-select: none;
    outline: none;
}

.payment-option::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #ffffff;
    background: var(--primary);
    opacity: 0;
    transform: scale(0.75);
    transition: all 0.2s ease;
}

.payment-option:hover,
.payment-option:focus-visible {
    background: #f3fbf6 !important;
    color: var(--primary-deep) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.18), 0 18px 36px rgba(0,0,0,0.20) !important;
    transform: translateY(-2px);
}

.payment-option:active,
.payment-option.is-pressed {
    transform: translateY(0) scale(0.98);
    background: #eaf7ee !important;
    border-color: #ffffff !important;
}

.payment-option.selected {
    background: var(--primary-deep) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 5px rgba(255,255,255,0.20), 0 20px 44px rgba(0,0,0,0.28) !important;
    transform: translateY(-2px) scale(1.01);
}

.payment-option.selected::after {
    opacity: 1;
    transform: scale(1);
    background: #ffffff;
    color: var(--primary-deep);
}

.payment-option.is-loading {
    pointer-events: none;
}

.payment-option.is-loading::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.45);
    border-top-color: #ffffff;
    animation: spin 0.7s linear infinite;
}

.payment-option img {
    max-width: 48px;
    max-height: 34px;
    object-fit: contain;
}

.payment-option.mastercard {
    grid-column: span 2 !important;
}

.payment-option.mastercard span {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
}

.payment-hint {
    margin-top: -6px;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    text-align: center;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .payment-option {
        min-height: 82px !important;
        background: #ffffff !important;
        color: var(--text-main) !important;
        border-color: var(--line) !important;
        box-shadow: 0 8px 22px rgba(10, 73, 34, 0.08) !important;
    }

    .payment-option:hover,
    .payment-option:focus-visible {
        background: #f3fbf6 !important;
        border-color: var(--primary) !important;
        box-shadow: 0 0 0 4px rgba(31, 136, 67, 0.12) !important;
    }

    .payment-option.selected {
        background: var(--primary) !important;
        color: #ffffff !important;
        border-color: var(--primary-dark) !important;
        box-shadow: 0 0 0 4px rgba(31, 136, 67, 0.16), 0 14px 30px rgba(31, 136, 67, 0.24) !important;
    }

    .payment-option.is-loading::before {
        border-color: rgba(255,255,255,0.5);
        border-top-color: #ffffff;
    }

    .payment-hint {
        color: var(--text-soft);
    }
}

/* ============================================================
   Status UI Fix: Error, Success, Warning, Info
   Put this at the VERY BOTTOM of your CSS file
============================================================ */

:root {
    --status-error: #dc2626;
    --status-error-dark: #991b1b;
    --status-error-soft: #fef2f2;
    --status-error-line: #fecaca;

    --status-success: #16a34a;
    --status-success-dark: #166534;
    --status-success-soft: #f0fdf4;
    --status-success-line: #bbf7d0;

    --status-warning: #d97706;
    --status-warning-dark: #92400e;
    --status-warning-soft: #fffbeb;
    --status-warning-line: #fed7aa;

    --status-info: #2563eb;
    --status-info-dark: #1e40af;
    --status-info-soft: #eff6ff;
    --status-info-line: #bfdbfe;
}

/* Error message inside form steps */
.error-message {
    background: var(--status-error-soft) !important;
    border: 1px solid var(--status-error-line) !important;
    color: var(--status-error-dark) !important;
    border-radius: 14px !important;
    margin-bottom: 16px !important;
    width: 100%;
    line-height: 1.45;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    /* box-shadow: 0 12px 28px rgba(220, 38, 38, 0.12); */
}

/* .error-message::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--status-error);
    font-size: 16px;
} */

/* If error is shown by JS using flex */
.error-message[style*="display: flex"],
.error-message[style*="display: block"] {
    align-items: center;
}

/* Success page visual */
#step-8 .success-icon {
    background: var(--status-success) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 36px rgba(22, 163, 74, 0.28) !important;
}

#step-8 h2 {
    color: var(--status-success-dark) !important;
}

#step-8 .registration-details {
    background: var(--status-success-soft) !important;
    border: 1px solid var(--status-success-line) !important;
    border-left: 5px solid var(--status-success) !important;
    color: var(--status-success-dark) !important;
    box-shadow: 0 14px 32px rgba(22, 163, 74, 0.12) !important;
    font-size: 12px;
}

/* Payment error page */
#step-9 i {
    color: var(--status-error) !important;
}

#step-9 h2 {
    color: var(--status-error-dark) !important;
}

#step-9 p {
    color: var(--status-error-dark) !important;
}

#step-9 .button-group {
    background: transparent !important;
}

/* Toast base */
.toast {
    position: relative;
    overflow: hidden;
    border-radius: 16px !important;
    color: #ffffff !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22) !important;
}

/* Toast success */
.toast.success {
    background: var(--status-success) !important;
    /* border-left: 5px solid var(--status-success-dark) !important; */
}

/* Toast error */
.toast.error {
    background: var(--status-error) !important;
    /* border-left: 5px solid var(--status-error-dark) !important; */
}

/* Toast warning */
.toast.warning {
    background: var(--status-warning) !important;
    /* border-left: 5px solid var(--status-warning-dark) !important; */
}

/* Toast info */
.toast.info {
    background: var(--status-info) !important;
    /* border-left: 5px solid var(--status-info-dark) !important; */
}

/* Toast progress should match status clearly */
.toast.success .toast-progress {
    background: rgba(255, 255, 255, 0.75) !important;
}

.toast.error .toast-progress {
    background: rgba(255, 255, 255, 0.75) !important;
}

.toast.warning .toast-progress {
    background: rgba(255, 255, 255, 0.75) !important;
}

.toast.info .toast-progress {
    background: rgba(255, 255, 255, 0.75) !important;
}

/* Mobile correction */
@media (max-width: 768px) {
    .error-message {
        background: var(--status-error-soft) !important;
        border-color: var(--status-error-line) !important;
        /* border-left: 5px solid var(--status-error) !important; */
        color: var(--status-error-dark) !important;
        /* box-shadow: 0 10px 24px rgba(220, 38, 38, 0.10) !important; */
    }

    #step-8 h2 {
        color: var(--status-success-dark) !important;
    }

    #step-9 h2,
    #step-9 p {
        color: var(--status-error-dark) !important;
    }
}


/* Existing user error with login action */
.error-message .error-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.error-message .error-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.error-message .error-text strong {
    color: var(--status-error-dark);
    font-size: 14px;
    font-weight: 900;
}

.error-message .error-text span {
    color: var(--status-error-dark);
    font-size: 13px;
    line-height: 1.45;
}

.error-login-btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 10px 22px rgba(31, 136, 67, 0.22);
}

.error-login-btn:hover {
    background: var(--primary-dark);
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .error-message .error-content {
        flex-direction: column;
        align-items: stretch;
    }

    .error-login-btn {
        width: 100%;
        min-height: 44px;
    }
}