* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #06b6d4;
    --primary-dark: #0891b2;
    --primary-light: #67e8f9;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-bg-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --input-focus: #06b6d4;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(245, 158, 11, 0.1) 0px, transparent 50%);
    min-height: 100vh;
    padding: 40px 20px;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(6, 182, 212, 0.03) 2px,
            rgba(6, 182, 212, 0.03) 4px
        );
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.form-wrapper {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    padding: 48px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 40px;
    position: relative;
}

.header-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
    animation: fadeInDown 0.6s ease-out 0.2s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.title-main {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.title-sub {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: -8px;
}

.header-divider {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 20%, var(--secondary-color) 80%, transparent);
    margin: 0 auto 24px;
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.5s both;
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 120px;
        opacity: 1;
    }
}

.registration-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(6, 182, 212, 0.1);
    transition: all 0.3s ease;
    text-align: left;
}

.info-item:hover {
    transform: translateX(4px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

.info-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(6, 182, 212, 0.2);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.capacity-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--warning-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
    text-align: center;
    color: #92400e;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.capacity-info {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px dashed var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.capacity-info span {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.required {
    color: var(--error-color);
    margin-left: 4px;
    font-weight: 800;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    color: var(--text-primary);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1), 0 4px 12px rgba(6, 182, 212, 0.15);
    transform: translateY(-1px);
}

input:invalid:not(:placeholder-shown) {
    border-color: var(--error-color);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.char-count {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: right;
    margin-top: -4px;
}

.char-count span {
    font-weight: 700;
    color: var(--primary-color);
}

.field-hint {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: -4px;
    font-style: italic;
}

.price-display {
    padding: 24px;
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 50%, #a5f3fc 100%);
    border-radius: 16px;
    border: 3px solid var(--primary-color);
    text-align: center;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
    position: relative;
    overflow: hidden;
}

.price-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    padding: 16px 24px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    font-weight: 600;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.radio-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    transition: left 0.5s;
}

.radio-label:hover::before {
    left: 100%;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.radio-label input[type="radio"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary-dark);
    font-weight: 700;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3), var(--shadow-lg);
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.4), var(--shadow-xl);
    background-position: 100% 0;
}

.submit-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(1);
}

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

.btn-loader {
    display: inline-block;
}

.form-message {
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.form-message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-color: var(--error-color);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    body {
        padding: 20px 10px;
    }

    .container {
        padding: 10px;
    }

    .form-wrapper {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .header-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
        margin-bottom: 20px;
    }

    .title-main {
        font-size: 2.25rem;
    }

    .title-sub {
        font-size: 1.25rem;
    }

    .registration-title {
        font-size: 1.25rem;
    }

    .header-divider {
        width: 80px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
        align-items: center;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin: 0 auto;
    }

    .info-content {
        align-items: center;
        text-align: center;
    }

    .info-label {
        text-align: center;
    }

    .info-value {
        font-size: 0.9rem;
        text-align: center;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .price-amount {
        font-size: 1.75rem;
    }

    .submit-btn {
        padding: 16px 32px;
        font-size: 0.875rem;
    }
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-loader::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Review Page Styles */
.review-page {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    position: relative;
    border-bottom: 2px dashed var(--border-color);
}

.review-header h1 {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.review-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}


/* Confirmation Page Styles */
.confirmation-page {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.confirmation-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 40px;
    position: relative;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirmation-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.confirmation-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.confirmation-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.confirmation-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    padding: 32px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.confirmation-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.01em;
}

.confirmation-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateX(4px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

.detail-label {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 120px;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: right;
    flex: 1;
    margin-left: 16px;
}

.confirmation-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(6, 182, 212, 0.1);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.info-box .info-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(6, 182, 212, 0.2);
}

.info-box .info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-box .info-text strong {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 700;
}

.info-box .info-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

#back-to-registration {
    width: 100%;
    margin-top: 8px;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.save-page-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3), var(--shadow-lg);
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.95rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.save-page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.save-page-btn:hover::before {
    left: 100%;
}

.save-page-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4), var(--shadow-xl);
}

.save-page-btn:active {
    transform: translateY(-1px) scale(1);
}

.save-icon {
    font-size: 1.25rem;
}

@media print {
    #back-to-registration,
    .save-page-btn {
        display: none !important;
    }
}

/* Responsive Design for Confirmation Page */
@media (max-width: 640px) {
    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .confirmation-header h1 {
        font-size: 2rem;
    }

    .confirmation-subtitle {
        font-size: 1rem;
    }

    .confirmation-card {
        padding: 24px 20px;
    }

    .confirmation-card h2 {
        font-size: 1.25rem;
    }

    .detail-item {
        flex-direction: column;
        gap: 8px;
        padding: 14px;
    }

    .detail-label {
        min-width: auto;
        font-size: 0.875rem;
    }

    .detail-value {
        text-align: left;
        margin-left: 0;
        font-size: 0.95rem;
    }

    .info-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        align-items: center;
    }

    .info-box .info-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .info-box .info-text {
        text-align: center;
    }

    .review-header h1 {
        font-size: 1.75rem;
    }

    .review-subtitle {
        font-size: 0.9rem;
    }
}
