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

:root {
    --primary-color: #d4af37;
    --secondary-color: #8b4513;
    --dark-color: #2c1810;
    --light-bg: #faf8f5;
    --text-dark: #333;
    --text-light: #666;
    --success-color: #4caf50;
    --error-color: #f44336;
    --pending-color: #ff9800;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-section {
    text-align: left;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 0.9rem;
    color: #ddd;
    margin-top: 0.25rem;
}

.event-info {
    text-align: right;
}

.edition {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.event-type {
    display: block;
    font-size: 0.9rem;
    color: #ddd;
    margin-top: 0.25rem;
}

/* Event Details Section */
.event-details {
    padding: 3rem 0;
    background: white;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.detail-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--light-bg);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.detail-card p {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Stall Layout Section */
.stall-layout {
    padding: 3rem 0;
}

.stall-layout h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.layout-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--secondary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.legend {
    display: flex;
    gap: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.legend-color.available {
    background: #4caf50;
}

.legend-color.booked {
    background: #f44336;
}

.legend-color.pending {
    background: #ff9800;
}

/* Floor Plan Container */
.floor-plan-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.floor-plan-bg {
    width: 100%;
    height: auto;
    display: block;
}

.floor-plan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stall-rect {
    cursor: pointer;
    fill-opacity: 0.3;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.stall-rect.available {
    fill: #4caf50;
    stroke: #4caf50;
}

.stall-rect.booked {
    fill: #f44336;
    stroke: #f44336;
    cursor: not-allowed;
}

.stall-rect.pending {
    fill: #ff9800;
    stroke: #ff9800;
}

.stall-rect:hover {
    fill-opacity: 0.6;
    stroke-width: 3;
}

.stall-text {
    pointer-events: none;
    fill: white;
    font-size: 14px;
    font-weight: bold;
    text-anchor: middle;
}

/* Pricing Section */
.pricing {
    padding: 3rem 0;
}

.pricing h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.price-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-card.premium {
    border: 2px solid var(--primary-color);
}

.price-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-header h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-card ul {
    list-style: none;
}

.price-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
}

.price-card li:last-child {
    border-bottom: none;
}

/* Terms Section */
.terms {
    padding: 3rem 0;
    background: white;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.terms h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.terms-content {
    padding: 2rem;
}

.terms-content ul {
    list-style: none;
}

.terms-content li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
    position: relative;
    padding-left: 30px;
}

.terms-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal h2 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

/* Form Styles */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stall-info {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.stall-info p {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.stall-info .total {
    font-size: 1.2rem;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
    padding-top: 0.75rem;
    margin-top: 1rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option input[type="radio"] {
    margin-right: 1rem;
    width: auto;
}

.payment-details {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
}

.qr-placeholder i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: #ddd;
    color: var(--text-dark);
}

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

/* Success Modal */
.success-content {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.booking-ref {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        text-align: center;
    }
    
    .event-info {
        text-align: center;
        margin-top: 1rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .layout-controls {
        flex-direction: column;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .legend {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-top: 2rem;
    }
}