/* Modern, clean base styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4361ee;
    --primary-light: #edf2fb;
    --primary-dark: #3a56d4;
    --accent: #10b981;
    --accent-hover: #0ea271;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text: #1f2937;
    --text-light: #6b7280;
    --background: #f3f4f6;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: var(--card-bg);
    min-height: calc(100vh - 40px);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
}

header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.logo-container {
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    border-radius: var(--radius);
}

h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

/* Modern Step Indicator */
.steps {
    display: flex;
    margin-bottom: 35px;
    padding: 5px;
    background-color: var(--primary-light);
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: calc(var(--radius) - 2px);
    font-size: 15px;
}

.step.active {
    color: white;
    font-weight: 600;
    background-color: var(--primary);
    box-shadow: var(--shadow);
}

.step.completed {
    color: var(--primary-dark);
    font-weight: 500;
}

.step.completed::before {
    content: '✓';
    display: inline-block;
    margin-right: 5px;
    font-size: 12px;
}

.step.completed {
    color: var(--accent);
}

@media (max-width: 480px) {
    .step {
        font-size: 14px;
        padding: 8px 0;
    }
}

/* Ticket sections */
.sections-container {
    flex: 1;
    padding: 10px 0;
}

.ticket-section {
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-out;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

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

.ticket-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 2px solid #2e7d32;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2e7d32;
    background-color: white;
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-heading {
    color: white;
    background-color: #2e7d32;
    padding: 12px;
    margin: 10px -15px 15px -15px;
    font-size: 20px;
    text-align: center;
    border-radius: 5px;
}

.ticket-heading {
    color: #2e7d32;
    margin: 20px 0 5px 0;
    font-size: 18px;
    text-align: left;
    border-bottom: 1px dashed #2e7d32;
    padding-bottom: 5px;
}

.simple-ticket-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 15px 0;
    padding: 12px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: background-color 0.3s, border-color 0.3s;
}

.ticket-price {
    font-size: 24px;
    font-weight: bold;
    color: #d32f2f;
}

.price-tag {
    position: relative;
    padding: 5px 10px;
    background-color: #ffebee;
    border-radius: 5px;
}

.checkbox-control {
    display: flex;
    align-items: center;
}

.checkbox-control input[type="checkbox"] {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.checkbox-label {
    font-size: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: white;
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: 600;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield; /* Remove spinner in all browsers */
    color: var(--text);
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-control button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.quantity-control button:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.quantity-control button:active {
    transform: scale(0.95);
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    font-weight: 500;
    color: var(--text-dark);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #f2f2f2;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.1);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e6e6e6;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Modern Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn {
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    gap: 8px;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translateY(1px);
}

.prev-btn {
    background-color: var(--text-light);
}

.prev-btn:hover {
    background-color: #4b5563;
}

.prev-btn::before {
    content: '←';
    margin-right: 5px;
}

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

.next-btn::after {
    content: '→';
    margin-left: 5px;
}

.pay-now-btn {
    background-color: var(--accent);
}

.pay-now-btn:hover {
    background-color: var(--accent-hover);
}

.pay-now-btn::before {
    content: '💰';
    font-size: 14px;
}

@media (max-width: 480px) {
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    button {
        width: 100%;
    }
}

/* Modern Ticket Cards */
.ticket-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--card-bg);
    transition: all 0.3s ease;
    position: relative;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.ticket-info {
    padding: 18px 15px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    background-color: var(--primary-light);
}

.ticket-info h3 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.price {
    font-weight: 700;
}

/* Simple Summary Section */
.summary-container {
    padding: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.summary-container h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.ticket-summary {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.ticket-summary div {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.ticket-summary div span:first-child {
    font-weight: 500;
    color: var(--text);
}

.ticket-summary div span:last-child {
    font-weight: 600;
    color: var(--primary);
}

.ticket-summary .no-tickets {
    text-align: center;
    padding: 15px 0;
    color: #888;
    font-style: italic;
}

.ticket-summary .total {
    margin-top: 15px;
    padding: 10px 0;
    border-top: 2px solid var(--primary);
    border-bottom: none;
    font-weight: 700;
}

.ticket-summary .total span:first-child {
    font-weight: 700;
    text-transform: uppercase;
}

.ticket-summary .total span:last-child {
    font-size: 20px;
    color: var(--accent);
    font-weight: 700;
}

#ticket-summary .summary-name {
font-weight: bold;
}

#ticket-summary .summary-total {
padding-top: 10px;
margin-top: 10px;
border-top: 2px solid #2e7d32;
font-weight: bold;
font-size: 18px;
color: #2e7d32;
display: flex;
justify-content: space-between;
}

/* Modern Special Day Banner */
.special-day-banner {
    background-color: #fef3c7;
    color: #92400e;
    padding: 12px 15px;
    text-align: center;
    margin-bottom: 25px;
    border-radius: var(--radius);
    font-weight: 600;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.special-day-banner::before {
    content: '🎉';
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 0;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
    
    .ticket-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        font-size: 13px;
        padding: 10px 5px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
    
    .total-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .pay-button {
        width: 100%;
    }
    
    .ticket-info h3 {
        font-size: 16px;
    }
}

/* Active Ticket Styling */
.active-ticket {
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
    transform: translateY(-3px);
}

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

main {
    animation: slideInUp 0.5s ease-out;
}

/* Fixed bottom bar showing total amount */
.fixed-total-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 1000;
    border-top: 1px solid var(--border);
}

.fixed-total-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.fixed-total-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 500;
}

.total-tickets-count {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.fixed-total-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.total-label {
    font-weight: 500;
    color: var(--text);
}

.total-amount {
    font-weight: 700;
    color: var(--accent);
    font-size: 22px;
    min-width: 80px;
}

.proceed-to-payment-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.proceed-to-payment-btn::after {
    content: '→';
}

.proceed-to-payment-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.proceed-to-payment-btn:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* Add padding to the bottom of the container to account for fixed bar */
.container {
    margin-bottom: 80px;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    color: var(--text-light);
}

footer p {
    margin: 0;
    text-align: center;
    font-size: 14px;
}

footer .developer-credit {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-light);
}

footer .developer-credit a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer .developer-credit a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .special-day-banner {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    /* Stack navigation buttons on small screens */
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation-buttons button {
        width: 100%;
    }
}
