:root {
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --error: #ef4444;
    --success: #10b981;
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .event-title {
    font-family: 'Space Grotesk', sans-serif;
}

.hidden {
    display: none !important;
}

/* Layout */
.layout-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 900px) {
    .layout-container {
        flex-direction: row;
    }
}

/* Left Panel */
.info-panel {
    position: relative;
    padding: 3rem 2rem;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-color: #0f172a;
    display: flex;
    align-items: flex-end;
    min-height: 40vh;
}

@media (min-width: 900px) {
    .info-panel {
        flex: 1;
        min-height: 100vh;
        padding: 5rem 4rem;
        position: fixed;
        width: 45%;
        left: 0;
        top: 0;
        bottom: 0;
    }
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 58, 138, 0.9) 100%);
    z-index: 1;
}

.info-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.event-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

@media (min-width: 900px) {
    .event-title { font-size: 3.5rem; }
}

.event-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.detail-item svg {
    color: #93c5fd;
}

/* Right Panel / Form Area */
.form-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.5rem;
    background-color: var(--bg-color);
}

@media (min-width: 900px) {
    .form-panel {
        margin-left: 45%;
        width: 55%;
        min-height: 100vh;
        padding: 4rem;
    }
}

.form-wrapper {
    width: 100%;
    max-width: 520px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

@media (max-width: 600px) {
    .form-wrapper {
        padding: 1.5rem;
        box-shadow: none;
        background: transparent;
    }
}

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

.form-header h2 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
}

/* Progress Bar */
.progress-bar {
    margin-bottom: 3rem;
}

.progress-track {
    position: relative;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 16px 1.5rem 16px;
}

.progress-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.step-dot.active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.step-dot.completed {
    border-color: var(--accent);
    background: var(--accent);
    color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.step-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0 4px;
}

.step-labels span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 60px;
    text-align: center;
}

/* Form Styles */
.form-step {
    animation: fadeIn 0.4s ease-out;
}

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

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

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text-main);
    transition: all 0.2s;
}

input::placeholder, textarea::placeholder {
    color: #94a3b8;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input.has-error {
    border-color: var(--error);
}

.error-text {
    display: none;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

input.has-error + .error-text {
    display: block;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' 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;
    padding-right: 2.5rem;
}

/* Review Step */
.review-box {
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-box h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.review-item dt {
    color: var(--text-muted);
}

.review-item dd {
    font-weight: 500;
    color: var(--text-main);
    text-align: right;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions.right {
    justify-content: flex-end;
}

.form-actions.split {
    justify-content: space-between;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.submit-btn {
    flex: 1;
    max-width: 250px;
}

/* State Screens */
.state-screen {
    text-align: center;
    padding: 2rem 0;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-circle.success {
    background: #d1fae5;
    color: var(--success);
}

.state-screen h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.state-screen p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.summary-box {
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: left;
    margin-top: 1.5rem;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
    margin: 3rem auto;
}

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

/* Error Alert */
.error-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Utility */
.mt-6 { margin-top: 1.5rem; }

/* Powered By */
.footer-wrapper {
    margin-top: 2rem;
    width: 100%;
}
