/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 40px;
}

.logo img {
    height: 50px;
}

.language-toggle {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 2px solid #0C6D3C;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #0C6D3C;
}

.lang-btn img {
    width: 20px;
    height: 20px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #0C6D3C;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0C6D3C, #E2F03C);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.event-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 25px;
    display: inline-block;
}

.event-details p {
    font-weight: 600;
    margin: 0;
}

/* Floor Plan Section */
.floor-plan-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.floor-plan-section h2 {
    text-align: center;
    color: #0C6D3C;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.floor-plan-section p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
}

.floor-plan-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.floor-plan {
    position: relative;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Entrance */
.entrance {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #0C6D3C;
    color: white;
    padding: 1rem 0.5rem;
    border-radius: 5px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
}

/* Booth Rows */
.booth-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.top-row {
    margin-top: 1rem;
}

.bottom-row {
    margin-bottom: 0;
}

/* Central Block */
.central-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 2rem 0;
    align-items: center;
}

.central-row {
    display: flex;
    gap: 0.5rem;
}

/* Individual Booths */
.booth {
    width: 60px;
    height: 40px;
    background: #0C6D3C;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

.booth:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(12, 109, 60, 0.3);
}

.booth.selected {
    background: #E2F03C;
    color: #0C6D3C;
    box-shadow: 0 0 15px rgba(226, 240, 60, 0.5);
}

.booth.occupied {
    background: #dc3545;
    cursor: not-allowed;
}

.booth.occupied:hover {
    transform: none;
    box-shadow: none;
}

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.legend-color.available {
    background: #0C6D3C;
}

.legend-color.selected {
    background: #E2F03C;
}

.legend-color.occupied {
    background: #dc3545;
}

/* Selected Spot Info */
.selected-spot-info {
    background: #E2F03C;
    color: #0C6D3C;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
}

.selected-spot-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.selected-spot-info p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0C6D3C, #E2F03C);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E2F03C, #0C6D3C);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: #0C6D3C;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* Registration Form Styles */
.registration-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.registration-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.selected-spot-display {
    background: #E2F03C;
    color: #0C6D3C;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.selected-spot-display h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.spot-info {
    font-size: 1.1rem;
    font-weight: 600;
}

.spot-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 2rem;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #0C6D3C;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E2F03C;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0C6D3C;
    box-shadow: 0 0 0 3px rgba(12, 109, 60, 0.1);
}

.form-group input:invalid {
    border-color: #dc3545;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #0C6D3C;
}

.checkbox-group label {
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Form Validation Styles */
.form-group input:invalid + .error-message {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.error-message {
    display: none;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 20px;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .booth {
        width: 45px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .booth-row {
        gap: 0.3rem;
    }
    
    .central-row {
        gap: 0.3rem;
    }
    
    .legend {
        gap: 1rem;
    }
    
    .floor-plan {
        padding: 1rem;
    }
    
    .entrance {
        padding: 0.5rem 0.3rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .booth {
        width: 35px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .booth-row {
        gap: 0.2rem;
    }
    
    .central-row {
        gap: 0.2rem;
    }
    
    .legend {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .registration-container {
        padding: 2rem 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}
