/* 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;
    position: relative;
}

.booth.occupied:hover {
    transform: none;
    box-shadow: none;
}

/* Company name tooltip for occupied spots */
.booth.occupied.has-company-tooltip {
    cursor: help;
    position: relative;
}

.booth.occupied.has-company-tooltip .spot-info-icon {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    color: #dc3545;
    line-height: 1;
}

/* Company name tooltip */
.booth.occupied.has-company-tooltip::after {
    content: attr(data-company);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    max-width: 200px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.booth.occupied.has-company-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1001;
}

.booth.occupied.has-company-tooltip:hover::after,
.booth.occupied.has-company-tooltip:hover::before {
    opacity: 1;
}

/* Ensure tooltip doesn't overflow on mobile */
@media (max-width: 768px) {
    .booth.occupied.has-company-tooltip::after {
        max-width: 150px;
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .info-box {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .info-box i {
        font-size: 1rem;
    }
    
    .legend-hint {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* 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;
    flex-wrap: wrap;
}

.legend-hint {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    margin-left: 0.25rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.legend-color.available {
    background: #0C6D3C;
}

.legend-color.selected {
    background: #E2F03C;
}

.legend-color.occupied {
    background: #dc3545;
}

/* Info Box */
.info-box {
    background: #e7f3ff;
    border-left: 4px solid #0C6D3C;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #0C6D3C;
}

.info-box i {
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.info-box span {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 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;
}

.spot-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.spot-badge {
    display: inline-block;
    background: #0C6D3C;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
}

.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;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    color: #0C6D3C;
    font-size: 1.5rem;
    margin: 0;
}

.modal-body {
    padding: 1rem 0;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

/* Success Modal */
.modal-content.success .modal-header {
    border-bottom-color: #d4edda;
}

.modal-content.success .modal-header h3 {
    color: #155724;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
}

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

.success-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.success-details p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.success-details strong {
    color: #0C6D3C;
}

/* Error Modal */
.modal-content.error .modal-header {
    border-bottom-color: #f8d7da;
}

.modal-content.error .modal-header h3 {
    color: #721c24;
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Progress Modal */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0C6D3C, #E2F03C);
    border-radius: 15px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-container p {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #0C6D3C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error Message Display */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

/* 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;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .success-icon,
    .error-icon {
        font-size: 3rem;
    }
}
