/* ============================================
   EVENTS PAGE STYLES
   ============================================ */

/* HERO */
.events-hero {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #ffe55c 100%);
    padding: 50px 0;
    text-align: center;
}
.events-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.events-hero p { font-size: 1rem; color: var(--text-light); }

/* ============================================
   EVENT CARD
   ============================================ */
.events-section {
    padding: 60px 0;
    background-color: var(--off-white);
}

.event-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--pure-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    max-width: 1100px;
    margin: 0 auto;
}

.event-poster {
    position: relative;
    background: linear-gradient(135deg, var(--accent-red) 0%, #c82333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 20px;
}

.event-poster img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
}

.event-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-yellow);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
}

.event-details { padding: 40px 40px 40px 0; }

.event-date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--accent-red);
    color: var(--pure-white);
    padding: 10px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    line-height: 1;
}
.event-date-badge .day { font-size: 2rem; font-weight: 700; }
.event-date-badge .month { font-size: 0.9rem; font-weight: 600; letter-spacing: 2px; margin-top: 5px; }
.event-date-badge .year { font-size: 0.8rem; opacity: 0.9; }

.event-details h2 { font-size: 2rem; color: var(--text-dark); margin-bottom: 5px; }
.event-subtitle { color: var(--accent-red); font-weight: 500; margin-bottom: 25px; }

.event-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}
.meta-item i { color: var(--accent-red); width: 20px; }

.event-description h3 { font-size: 1.2rem; margin: 20px 0 10px; color: var(--text-dark); }
.event-description p { color: var(--text-light); margin-bottom: 15px; line-height: 1.7; }

.event-topics { list-style: none; margin-bottom: 15px; }
.event-topics li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
}
.event-topics i { color: var(--accent-red); margin-top: 4px; }

/* ============================================
   TICKET SECTION (on the event card)
   ============================================ */
.ticket-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed #eee;
}
.ticket-price { display: flex; flex-direction: column; }
.price-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.price-amount { font-size: 2rem; font-weight: 700; color: var(--accent-red); }
.price-note { font-size: 0.8rem; color: var(--text-light); }

.btn-ticket {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--pure-white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}
.btn-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
}

/* ============================================
   PAYMENT MODAL — LAYOUT
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}
.modal.show { display: flex; }

.payment-modal-content {
    background: var(--pure-white);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Close button */
.modal-content .close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}
.modal-content .close:hover { color: var(--accent-red); }

/* Modal header */
.modal-header {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #ffe55c 100%);
    padding: 20px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 5;
}
.modal-header i { font-size: 2rem; color: var(--accent-red); margin-bottom: 6px; }
.modal-header h2 { color: var(--text-dark); font-size: 1.25rem; }
.modal-subtitle { color: var(--text-dark); font-size: 0.8rem; margin-top: 5px; opacity: 0.8; }

.modal-body { padding: 18px; }

.payment-price {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: #00c79c;
    margin-bottom: 3px;
}
.payment-description {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* ============================================
   PAYMENT METHODS LIST
   ============================================ */
.pay-methods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-method-wrapper {
    margin-bottom: 12px;
}

.pay-method-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.pay-method-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.pay-method-btn .btn-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.pay-method-btn .btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pay-method-btn .btn-text span {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
}
.pay-method-btn .btn-text small {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
}
.pay-method-btn .btn-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    opacity: 0.8;
}
.pay-method-btn.active .btn-arrow {
    transform: rotate(180deg);
}

/* Button colour variants */
.mpesa-btn  { background: linear-gradient(135deg, #00c79c 0%, #009e7c 100%); }
.mpesa-btn:hover  { background: linear-gradient(135deg, #009e7c 0%, #007a60 100%); }

.stripe-btn { background: linear-gradient(135deg, #635bff 0%, #4a42e8 100%); }
.stripe-btn:hover { background: linear-gradient(135deg, #4a42e8 0%, #3830d0 100%); }

.paypal-btn { background: linear-gradient(135deg, #003087 0%, #001f5c 100%); }
.paypal-btn:hover { background: linear-gradient(135deg, #001f5c 0%, #000f3d 100%); }

.manual-btn { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.manual-btn:hover { background: linear-gradient(135deg, #128C7E 0%, #0a5f54 100%); }

/* ============================================
   SLIDING FORMS — HIDDEN UNTIL CLICKED
   ============================================ */
.slide-form {
    display: none;               /* hard-locked hidden */
    max-height: 0;
    overflow: hidden;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
    padding: 0 18px;
    margin-top: 0;
    border: 1px solid transparent;
    transition: max-height 0.45s ease, padding 0.3s ease, margin 0.3s ease;
}

.slide-form.open {
    display: block;              /* only shows when JS adds .open */
    max-height: 600px;
    padding: 18px;
    margin-top: 6px;
    border: 1px solid #e5e7eb;
}

/* ============================================
   FORM GROUPS
   ============================================ */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.form-group label i {
    color: var(--accent-red);
    font-size: 0.85rem;
    width: 16px;
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}
.form-group input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}
.form-group input::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}
.input-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 5px;
    font-style: italic;
}

/* ============================================
   PAY NOW BUTTONS (inside each form)
   ============================================ */
.btn-pay-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}
.btn-pay-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.btn-pay-now:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mpesa-pay  { background: linear-gradient(135deg, #00c79c 0%, #009e7c 100%); }
.stripe-pay { background: linear-gradient(135deg, #635bff 0%, #4a42e8 100%); }
.paypal-pay { background: linear-gradient(135deg, #003087 0%, #001f5c 100%); }
.manual-pay { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }

/* Custom scrollbar for the modal */
.payment-modal-content::-webkit-scrollbar { width: 6px; }
.payment-modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 10px;
}
.payment-modal-content::-webkit-scrollbar-track { background: #f1f1f1; }

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: var(--text-dark);
    color: var(--pure-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 { font-size: 1.8rem; margin-bottom: 10px; }
.footer-logo h3 span { color: var(--accent-red); }
.footer-logo .store { color: var(--primary-yellow); }
.footer-logo p { color: #aaa; }

.footer-links h4,
.footer-social h4 {
    margin-bottom: 20px;
    color: var(--primary-yellow);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--primary-yellow); }

.social-icons { display: flex; gap: 15px; }
.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.3rem;
}
.social-youtube   { background-color: #FF0000; color: white !important; }
.social-tiktok    { background: linear-gradient(45deg, #000000, #25F4EE, #FE2C55); color: white !important; }
.social-instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); color: white !important; }
.social-whatsapp  { background-color: #25D366; color: white !important; }
.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .event-card { grid-template-columns: 1fr; }
    .event-details { padding: 30px; }
    .event-poster { min-height: 300px; }
    .event-meta { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .events-hero h1 { font-size: 1.6rem; }
    .event-details h2 { font-size: 1.5rem; }
    .ticket-section { flex-direction: column; text-align: center; }
    .btn-ticket { width: 100%; justify-content: center; }
    .payment-modal-content { margin: 0; width: 100%; }
}

@media (max-width: 480px) {
    .pay-method-btn { padding: 14px 15px; gap: 12px; }
    .pay-method-btn .btn-icon { width: 36px; height: 36px; font-size: 1rem; }
    .pay-method-btn .btn-text span { font-size: 0.9rem; }
    .pay-method-btn .btn-text small { font-size: 0.7rem; }
    .slide-form.open { padding: 15px; }
}