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

:root {
    --zoo-brown: #8B6914;
    --zoo-orange: #F5A623;
    --zoo-green: #4A7C59;
    --zoo-cream: #FFF8F0;
    --zoo-beige: #E8D5B7;
    --zoo-red: #FF6B6B;
    --zoo-yellow: #FFD93D;
    --zoo-dark: #3D2E1C;
    --zoo-light: #FEFCF8;
    --zoo-shadow: rgba(139, 105, 20, 0.15);
    --zoo-radius: 20px;
    --zoo-radius-sm: 12px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--zoo-cream);
    color: var(--zoo-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Paw print background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(139, 105, 20, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(74, 124, 89, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== Header ===== */
.zoo-header {
    background: linear-gradient(135deg, var(--zoo-brown) 0%, var(--zoo-orange) 100%);
    padding: 28px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zoo-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--zoo-cream);
    border-radius: 50% 50% 0 0;
}

.zoo-logo {
    font-family: 'Grandstander', 'Poppins', cursive;
    font-size: 2rem;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.zoo-logo span {
    color: var(--zoo-yellow);
}

.zoo-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ===== Progress Stepper ===== */
.progress-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px 10px;
    max-width: 500px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--zoo-beige);
    color: var(--zoo-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step.active .step-circle {
    background: var(--zoo-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
    transform: scale(1.1);
}

.step.completed .step-circle {
    background: var(--zoo-green);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #999;
    margin-top: 8px;
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: var(--zoo-orange);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--zoo-green);
}

.step-line {
    flex: 1;
    height: 3px;
    background: var(--zoo-beige);
    margin: 0 -10px;
    position: relative;
    top: -20px;
}

.step-line.completed {
    background: var(--zoo-green);
}

/* ===== Container ===== */
.zoo-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== Cards ===== */
.zoo-card {
    background: white;
    border-radius: var(--zoo-radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px var(--zoo-shadow);
    transition: transform 0.2s ease;
}

.zoo-card:hover {
    transform: translateY(-2px);
}

.zoo-card-title {
    font-family: 'Grandstander', 'Poppins', cursive;
    font-size: 1.3rem;
    color: var(--zoo-brown);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoo-card-title .icon {
    font-size: 1.5rem;
}

/* ===== Package Cards ===== */
.package-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.package-card {
    background: white;
    border-radius: var(--zoo-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 12px var(--zoo-shadow);
    width: 250px;
    flex-shrink: 0;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--zoo-shadow);
}

.package-card.selected {
    border-color: var(--zoo-orange);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.3);
    position: relative;
}

.package-card.selected::before {
    content: '\2713';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: var(--zoo-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: bounceIn 0.3s ease;
}

.package-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #faf6f0;
}

.package-card .package-info {
    padding: 14px;
}

.package-card .package-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--zoo-dark);
}

.package-card .package-price {
    color: var(--zoo-orange);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 4px;
}

.package-card .package-price small {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
}

/* ===== Form Elements ===== */
.zoo-form-group {
    margin-bottom: 18px;
}

.zoo-label {
    display: block;
    font-weight: 500;
    color: var(--zoo-dark);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.zoo-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--zoo-beige);
    border-radius: var(--zoo-radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--zoo-dark);
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.zoo-input:focus {
    border-color: var(--zoo-orange);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.zoo-input::placeholder {
    color: #bbb;
}

.zoo-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--zoo-beige);
    border-radius: var(--zoo-radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--zoo-dark);
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238B6914' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    outline: none;
}

.zoo-select:focus {
    border-color: var(--zoo-orange);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

/* Counter */
.counter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-label {
    flex: 1;
    font-weight: 500;
}

.counter-label small {
    display: block;
    color: #999;
    font-size: 0.8rem;
    font-weight: 400;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--zoo-beige);
    background: white;
    color: var(--zoo-brown);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 600;
}

.counter-btn:hover {
    background: var(--zoo-orange);
    border-color: var(--zoo-orange);
    color: white;
}

.counter-btn:active {
    transform: scale(0.9);
}

.counter-value {
    width: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--zoo-dark);
}

/* ===== Timeslot Selection ===== */
.timeslot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.timeslot {
    padding: 14px 12px;
    border: 2px solid var(--zoo-beige);
    border-radius: var(--zoo-radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.timeslot:hover {
    border-color: var(--zoo-orange);
    background: #FFF8F0;
}

.timeslot.selected {
    border-color: var(--zoo-orange);
    background: linear-gradient(135deg, #FFF3E0, #FFECB3);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.2);
}

.timeslot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.timeslot .time-range {
    font-weight: 600;
    font-size: 1rem;
    color: var(--zoo-dark);
}

.timeslot .time-remaining {
    font-size: 0.8rem;
    color: var(--zoo-green);
    margin-top: 4px;
}

.timeslot.disabled .time-remaining {
    color: var(--zoo-red);
}

/* ===== Buttons ===== */
.zoo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.zoo-btn-primary {
    background: linear-gradient(135deg, var(--zoo-orange), #E89A1D);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.zoo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
}

.zoo-btn-primary:active {
    transform: translateY(0);
}

.zoo-btn-secondary {
    background: white;
    color: var(--zoo-brown);
    border: 2px solid var(--zoo-beige);
}

.zoo-btn-secondary:hover {
    border-color: var(--zoo-orange);
    color: var(--zoo-orange);
}

.zoo-btn-green {
    background: linear-gradient(135deg, var(--zoo-green), #3D6E4A);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.4);
}

.zoo-btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.5);
}

.zoo-btn-block {
    width: 100%;
}

.zoo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Button group */
.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-group .zoo-btn {
    flex: 1;
}

/* ===== Summary ===== */
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0ece6;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row .label {
    color: #777;
    font-size: 0.9rem;
}

.summary-row .value {
    font-weight: 600;
    color: var(--zoo-dark);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 10px;
    border-top: 2px solid var(--zoo-orange);
}

.summary-total .label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--zoo-dark);
}

.summary-total .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--zoo-orange);
}

/* ===== Ticket View ===== */
.ticket-card {
    background: white;
    border-radius: var(--zoo-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--zoo-shadow);
    margin-bottom: 16px;
}

.ticket-header {
    background: linear-gradient(135deg, var(--zoo-brown), var(--zoo-orange));
    padding: 20px;
    text-align: center;
    color: white;
}

.ticket-body {
    padding: 24px;
}

.ticket-qr {
    text-align: center;
    padding: 20px;
}

.ticket-qr img {
    max-width: 200px;
    border-radius: 12px;
    border: 3px solid var(--zoo-beige);
}

.ticket-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
}

.ticket-info-row .label {
    color: #999;
}

.ticket-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ticket-badge.badge-cafe {
    background: #FFF3E0;
    color: var(--zoo-orange);
}

.ticket-badge.badge-garden {
    background: #E8F5E9;
    color: var(--zoo-green);
}

/* ===== Alerts ===== */
.zoo-alert {
    padding: 14px 20px;
    border-radius: var(--zoo-radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoo-alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.zoo-alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.zoo-alert-warning {
    background: #FFF8E1;
    color: #F57F17;
    border: 1px solid #FFE082;
}

.zoo-alert-info {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
}

/* ===== Checkbox ===== */
.zoo-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    border-radius: var(--zoo-radius-sm);
    transition: background 0.2s;
}

.zoo-checkbox:hover {
    background: #f9f5f0;
}

.zoo-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--zoo-orange);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.zoo-checkbox .checkbox-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* ===== Footer ===== */
.zoo-footer {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 0.8rem;
}

.zoo-footer a {
    color: var(--zoo-brown);
    text-decoration: none;
}

/* ===== Loading ===== */
.zoo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 8px;
    color: var(--zoo-brown);
}

.zoo-loading .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--zoo-beige);
    border-top-color: var(--zoo-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== Animations ===== */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.bounce-in {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .zoo-container {
        padding: 12px;
    }

    .zoo-card {
        padding: 20px;
        border-radius: 16px;
    }

    .zoo-logo {
        font-size: 1.6rem;
    }

    .package-card {
        width: 220px;
    }

    .timeslot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-group {
        flex-direction: column;
    }

    .progress-stepper {
        padding: 20px 10px 5px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 500px) {
    .package-card {
        width: 100%;
        flex-shrink: 1;
    }
}

@media (max-width: 400px) {
    .timeslot-grid {
        grid-template-columns: 1fr;
    }

    .counter-controls {
        gap: 4px;
    }
}
