/**
 * Register V6 Styles - Dark Theme Success Style
 * Ciemny motyw ze stylistyką ekranu sukcesu
 */

:root {
    --primary-red: #dc2626;
    --primary-green: #22c55e;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --bg-dark: #000000;
    --bg-card: rgba(0, 0, 0, 0.8);
    --bg-card-border: rgba(255, 255, 255, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

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

body.register-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: -1;
}

/* Header */
.register-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-card-border);
    z-index: 100;
    padding: 1rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

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

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
}

/* Progress Indicator - Ciemny styl */
.progress-indicator {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

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

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bg-card-border);
    transform: translateY(-50%);
    z-index: -1;
}

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

.step.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.step.completed {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.header-actions .back-link:hover {
    color: var(--text-primary);
}

/* Language Selector */
.language-selector {
    position: relative;
    z-index: 100;
    margin-left: 0 !important;
}

.lang-dropdown {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-dropdown:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
}

.lang-dropdown-menu.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.lang-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-primary);
}

/* Main Container */
.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
}

.registration-form {
    width: 100%;
    max-width: 800px;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.step-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bg-card-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

.step-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.step-description {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

/* Form Elements */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.1);
}

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

/* Checkboxes Style - Ulepszone dla ciemnego motywu */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.checkbox-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.checkbox-label:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

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

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--primary-red);
}

.checkbox-label span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.checkbox-label:has(input:checked) {
    background: rgba(220, 38, 38, 0.15);
    border-color: var(--primary-red);
}

.checkbox-label:has(input:checked) span {
    color: var(--text-primary);
}

/* Package Selection - Ulepszone karty w ciemnym motywie */
.package-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .package-selection {
        grid-template-columns: 1fr;
    }
}

.package-option {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.package-option:hover {
    transform: translateY(-5px);
}

.package-option input[type="radio"] {
    display: none;
}

.package-option label {
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    cursor: pointer;
    height: 100%;
}

.package-option:hover label {
    border-color: var(--primary-red);
    background: rgba(220, 38, 38, 0.05);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.2);
}

.package-option input[type="radio"]:checked + label {
    border-color: var(--primary-red);
    background: rgba(220, 38, 38, 0.1);
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.3);
}

/* VIP Package Special Styling */
.package-option.vip label {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(251, 191, 36, 0.1) 100%);
    border: 2px solid rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.package-option.vip label::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    animation: shimmer 3s linear infinite;
    pointer-events: none;
}

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

.package-option.vip:hover label {
    border-color: #fbbf24;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(251, 191, 36, 0.15) 100%);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.4);
}

.package-option.vip input[type="radio"]:checked + label {
    border-color: #fbbf24;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(251, 191, 36, 0.2) 100%);
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.5);
}

.vip-ribbon {
    position: absolute;
    top: -12px;
    right: 30px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    padding: 6px 20px;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.5);
    animation: pulse 2s infinite;
}

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

.package-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.package-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.package-option.vip .package-price {
    color: #fbbf24;
}

.price-note {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.package-benefits {
    list-style: none;
    margin: 1.5rem 0;
}

.package-benefits li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-benefits li::before {
    content: '✓';
    color: var(--primary-green);
    font-weight: normal;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.package-option.vip .package-benefits li::before {
    color: #fbbf24;
}

.package-benefits li.discount-info::before {
    content: '🎁';
    color: inherit;
}

.discount-info {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--primary-red);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
    color: var(--primary-red);
    font-weight: 600;
}

.discount-info.vip {
    background: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
    color: #fbbf24;
}

.queue-info {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.queue-info strong {
    color: var(--primary-red);
    font-size: 1.2rem;
}

.queue-info.vip strong {
    color: #fbbf24;
}

/* Success Screen - Dark Theme */
.success-step {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: white;
}

.success-title {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 2rem;
}

.success-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.queue-display {
    margin: 2rem 0;
}

.queue-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-top: 0.5rem;
}

.discount-code-card {
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.discount-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.code-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    font-family: 'Courier New', monospace;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-red-dark);
}

.discount-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
}

/* Accept All Button */
.btn-accept-all {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #000;
    color: white;
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-accept-all::before {
    content: '✓';
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-accept-all:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-list .checkbox-label {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.checkbox-list .checkbox-label span {
    font-size: 0.85rem;
}

.checkbox-list .checkbox-label a {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Buttons */
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #991b1b;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Partner Showcase */
.partner-showcase {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 250px;
    height: 83px;
    background: transparent;
    border-radius: 12px;
    overflow: visible;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.partner-label {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #dc2626;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.partner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.partner-slide.active {
    opacity: 1;
}

.partner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .progress-indicator {
        display: none;
    }
    
    .step-content {
        padding: 2rem 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .package-selection {
        grid-template-columns: 1fr;
    }
    
    .partner-showcase {
        display: none;
    }
}