
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #dc2626;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #059669 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.main-content {
    margin-top: -1rem;
    position: relative;
    z-index: 10;
    padding: 0 15px;
}

.event-card {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.event-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.event-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.event-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.meta-item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.meta-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.meta-content h4 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.meta-content p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.availability-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gradient-secondary);
    border-radius: 12px;
    color: white;
}

.availability-text {
    font-size: 1rem;
    font-weight: 600;
}

.availability-subtext {
    font-size: 0.75rem;
    opacity: 0.8;
}

.book-btn {
    background: white;
    color: var(--secondary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.image-gallery {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-header {
    padding: 1rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.gallery-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-subtitle {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.main-image-container {
    padding: 1rem;
    text-align: center;
}

.main-image {
    width: 100%;
    max-width: 300px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.thumbnail-gallery {
    padding: 0 1rem 1rem;
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.thumbnail {
    width: 100%;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
    transform: scale(1.05);
}

.details-section {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.details-header {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-bottom: 1px solid var(--border);
}

.details-title {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.details-title::before {
    content: '';
    width: 3px;
    height: 20px;
    background: var(--gradient-primary);
    margin-right: 0.5rem;
    border-radius: 2px;
}

.details-content {
    padding: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.notice-section {
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    padding: 1rem;
}

.notice-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.notice-content {
    font-size: 0.875rem;
    opacity: 0.95;
}

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
    text-align: center;
    position: relative;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 1rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    max-width: 80px;
    height: auto;
    border-radius: 8px;
    display: block;
}

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

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    display: block;
    font-size: 0.8rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    height: 38px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border);
    height: 38px;
}

.input-group:focus-within {
    border-color: var(--primary);
}

.input-group .form-control {
    border: none;
    border-radius: 0;
    height: 100%;
    padding: 0.5rem;
    font-size: 0.8rem;
}

.input-group .btn {
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.5rem;
    min-width: 36px;
    height: 100%;
    font-size: 0.8rem;
}

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

.price-display {
    text-align: right;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 6px;
    border-left: 3px solid var(--secondary);
}

.price-label {
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

.price-amount {
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 700;
}

.payment-buttons {
    display: flex;
    gap: 10px;
    /* spacing between buttons */
    flex-wrap: wrap;
}

.payment-button {
    flex: 1 1 100%;
    padding: 12px 16px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    transition: background-color 0.3s;
}

/* Auto handle when there are 2 buttons */
.payment-buttons:has(.payment-button:nth-child(2)) .payment-button {
    flex: 1 1 48%;
}


.payment-button:first-child {
    background: var(--gradient-primary);
    color: white;
}

.payment-button:last-child {
    background: var(--gradient-secondary);
    color: white;
}

.payment-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    background-color: #0056b3;
}

.loader {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    color: var(--danger);
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.required {
    color: var(--danger);
}

/* International Phone Input Adjustments */
.iti {
    width: 100%;
}

.iti__country-list {
    font-size: 0.8rem;
}

.iti__selected-flag {
    height: 36px;
}

.iti__flag-container {
    height: 36px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .event-title {
        font-size: 1.25rem;
    }

    .event-meta {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 150px;
        max-width: 250px;
    }

    .availability-section {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .payment-buttons {
        grid-template-columns: 1fr;
    }

    .modal-body {
        padding: 0.75rem;
    }

    .logo-container img {
        max-width: 70px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .event-title {
        font-size: 1.125rem;
    }

    .main-image {
        height: 120px;
        max-width: 200px;
    }

    .thumbnail {
        height: 40px;
    }

    .event-header,
    .details-content {
        padding: 1rem;
    }

    .meta-item {
        padding: 0.5rem;
    }

    .meta-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .modal-body {
        padding: 0.5rem;
    }

    .logo-container img {
        max-width: 60px;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-in-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-dialog {
    max-width: 500px;
}

