
/* ========================================
   1. GENERAL WEBSITE STYLING
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fbf7f3;
    color: #222;
    text-align: center;
}

h1 {
    margin: 10px 0;
    font-size: 32px;
}

h2 {
    color: #16834a;
    margin-top: 20px;
}

h3 {
    color: #16834a;
}

p {
    font-size: 16px;
    line-height: 1.6;
}

/* ========================================
   2. LOGO
   ======================================== */
.logo {
    display: block;
    width: 180px;
    max-width: 80%;
    height: auto;
    margin: 0 auto 15px;
}

/* ========================================
   3. MAIN CONTENT
   ======================================== */

main {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffee00;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

/* ========================================
   4. TENNIS AND PICKLEBALL BUTTONS
   ======================================== */

.booking-button {
    display: block;
    width: 220px;
    max-width: 100%;
    margin: 15px auto;
    padding: 15px 20px;
    background-color: #16834a;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

.booking-button:hover {
    background-color: #105c34;
    transform: translateY(-2px);
}

.booking-button:active {
    transform: translateY(0);
}



/* ========================================
   5. BACK TO HOME BUTTON
   ======================================== */

/* Back button image */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-block;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    text-decoration: none;
    line-height: 0;
    z-index: 10;
}

.back-button img {
    display: block;
    width: 100px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.back-button:hover {
    background: none;
    text-decoration: none;
}

.back-button:hover img {
    transform: scale(1.08);
}

/* ========================================
   6. PICKLEBALL & TENNIS BOOKING SECTION
   ======================================== */

.booking-section {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 3px 12px #696969;
}

.booking-section h1 {
    color: #16834a;
}

.booking-section > p {
    color: #555;
}

/* Main booking section */
.booking-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 20px;
}

/* ========================================
   7. DATE SELECTION
   ======================================== */

.date-selection {
    margin: 25px 0;
}

.date-selection label {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
}

.date-selection input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
}

/* ========================================
   8. BOOKING TABLE
   ======================================== */

.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.booking-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    table-layout: fixed;
}

.booking-table th,
.booking-table td {
    padding: 10px;
    border: 1px solid #a79e9e;
    text-align: center;
}

.booking-table th {
    background-color: #16834a;
    color: #ffffff;
    font-size: 15px;
}

.booking-table th:first-child {
    width: 190px;
}

.booking-table td:first-child {
    background-color: #ffffffc2;
    font-weight: bold;
    white-space: nowrap;
    font-size: 14px;
}

.booking-table {
    background-color: #ffffffc2;
}

/* ========================================
   9. COURT TIME SLOT BUTTONS
   ======================================== */

.slot-button {
    display: block;
    width: 100%;
    min-width: 65px;
    padding: 10px 5px;
    border: none;
    border-radius: 6px;
    background-color: #16834a;
    color: white;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.slot-button:hover:not(:disabled) {
    background-color: #105c34;
}

.slot-button.selected {
    background-color: #f0a500;
    color: #222;
    outline: 2px solid #b47b00;
    outline-offset: -2px;
}

.slot-button:disabled {
    background-color: #c62828;
    color: white;
    cursor: not-allowed;
}
.slot-button.pending,
.slot-button.pending:disabled {
    background-color: #f9a825;
    color: #212121;
    cursor: not-allowed;
}

/* Available slots */

.slot-button.available {
    background-color: #16834a;
    color: white;
}

.slot-button.available:hover:not(:disabled) {
    background-color: #105c34;
}

/* Booked slots */

.slot-button.booked,
.slot-button.booked:disabled {
    background-color: #c62828;
    color: white;
    cursor: not-allowed;
}

/* Open Play slots */

.slot-button.open-play,
.slot-button.open-play:disabled {
    background-color: #1976d2;
    color: white;
    cursor: pointer;
    opacity: 1;
}

/* ========================================
   10. BOOKING SELECTION MESSAGE
   ======================================== */

.selection-message {
    margin: 20px 0;
    padding: 15px;
    background-color: #f4f7f4;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* ========================================
   11. CONTINUE BOOKING BUTTON
   ======================================== */

.continue-button {
    display: inline-block;
    margin: 10px auto;
    padding: 13px 25px;
    border: none;
    border-radius: 8px;
    background-color: #16834a;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.continue-button:hover:not(:disabled) {
    background-color: #105c34;
}

.continue-button:disabled {
    background-color: #aaa;
    color: #eee;
    cursor: not-allowed;
}

/* ========================================
   12. BOOKING FORM
   ======================================== */

.booking-form {
    width: 100%;
    max-width: 500px;
    margin: 25px auto;
    text-align: left;
}

.booking-form label {
    display: block;
    margin: 15px 0 6px;
    font-weight: bold;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
    font-family: inherit;
    font-size: 16px;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: 2px solid #16834a;
    border-color: #16834a;
}

.booking-form button {
    width: 100%;
    margin-top: 20px;
}

/* ========================================
   13. COURT CARDS
   ======================================== */

.court-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.court-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
}

.court-card h3 {
    margin-top: 0;
}

.available {
    color: #16834a;
    font-weight: bold;
}

.unavailable {
    color: #c62828;
    font-weight: bold;
}

/* ========================================
   14. PAYMENT SECTION
   ======================================== */

.payment-section {
    width: 100%;
    max-width: 500px;
    margin: 25px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.qr-code {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 15px auto;
}

/* ========================================
   15. FOOTER
   ======================================== */

footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #16834a;
    color: white;
    text-align: center;
}

footer p {
    margin: 5px 0;
    font-size: 14px;
}

/* ========================================
   16. BOOKING STATUS LEGEND
   ======================================== */

.booking-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
}

.legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.available-color {
    background-color: #16834a;
}

.booked-color {
    background-color: #c62828;
}

.open-play-color {
    background-color: #1976d2;
}
.pending-color {
    background-color: #f9a825;
}


/* ========================================
   17. WANBOLDON HOMEPAGE
   ======================================== */

html,
body.homepage {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #fbf7f3;
}

body.homepage {
    overflow-x: hidden;
}

/* Full-width homepage layout */

.homepage main.home-layout {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0px;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: center;
    gap: 0px;
    background-color: #fbf7f3;
    border-radius: 0;
    box-shadow: none;
}

/* Make the information section span the full homepage width */
.homepage main.home-layout > .info-section {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 1200px;
    justify-self: center;
    margin: 50px auto 0;
}

/* Tennis and pickleball images */

.homepage .home-side {
    position: relative;
    display: block;
    width: 100%;
    height: 75vh;
    min-height: 400px;
    overflow: hidden;
    text-decoration: none;
    color: #fbf7f3;
}

.homepage .home-side img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.homepage .home-side:hover img {
    transform: scale(1.15);
}

/* Court labels */
.homepage .sport-label {
    position: absolute;
    bottom: 25px;
    left: 50%;
    background-color: #171713;
    color: #fbf7f3;
    padding: 12px 18px;
    font-size: clamp(17px, 2vw, 27px);
    font-weight: 900;
    text-align: center;
    transform: translateX(-50%) rotate(-10deg);
    letter-spacing: 0px;
}


.homepage .pickleball-side .sport-label {
    left:50%;
}

/* Center logo and address */

.homepage .home-center {
    width: 100%;
    min-width: 0;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    background-color: #fbf7f3;
}

.homepage .wanboldon-logo {
    display: block;
    width: 100%;
    max-width: 1000px;
    max-height: 900px;
    height: auto;
    object-fit: contain;
}

.homepage .business-address {
    margin: 20px 0 0;
    color: #514b3d;
    font-size: 20px;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* ========================================
   18. MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 700px) {

    /* Main homepage layout */
    .homepage main.home-layout {
        min-height: 100vh;
        min-height: 100svh;
        width: 100%;
        box-sizing: border-box;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 14px;
        padding: 20px 14px;

        align-content: center;
        align-items: center;
    }

    /* Center branding */
    .homepage .home-center {
        grid-column: 1 / -1;
        grid-row: 1;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        width: 100%;
        min-height: auto;
        padding: 12px 5px 20px;

        text-align: center;
    }

    /* Wanboldon logo */
    .homepage .wanboldon-logo {
        display: block;
        width: 100%;
        max-width: 340px;
        max-height: 260px;

        object-fit: contain;
        margin: 0 auto;
    }

    /* Business address */
    .homepage .business-address {
        margin-top: 16px;
        margin-bottom: 0;

        font-size: clamp(10px, 2.8vw, 13px);
        line-height: 1.5;
        text-align: center;
        letter-spacing: 0.5px;
    }

    /* Tennis and Pickleball cards */
    .homepage .home-side {
        position: relative;
        display: block;

        width: 100%;
        height: 43vh;
        height: 43svh;

        min-height: 220px;
        max-height: 390px;

        min-width: 0;
        box-sizing: border-box;
    }

    /* Sport images */
    .homepage .home-side img {
        display: block;
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }

    /* Sport labels */
    .homepage .sport-label {
        position: absolute;

        bottom: 18px;
        left: 50%;

        transform: translateX(-50%) rotate(-8deg);

        width: max-content;
        max-width: calc(100% - 12px);
        box-sizing: border-box;

        padding: 10px 13px;

        font-size: clamp(11px, 3vw, 15px);
        font-weight: 700;
        text-align: center;
        white-space: nowrap;
    }

    /* Tennis label */
    .homepage .tennis-side .sport-label {
        left: 50%;
    }

    /* Pickleball label */
    .homepage .pickleball-side .sport-label {
        left: 50%;
    }
}
/* Hide back button on mobile */
@media (max-width: 700px) {
    .back-button {
        display: none !important;
    }
}

/* ========================================
   SMALL MOBILE PHONES
   ======================================== */

@media (max-width: 400px) {

    .homepage main.home-layout {
        gap: 9px;
        padding: 14px 9px;
    }

    .homepage .home-center {
        padding: 8px 3px 14px;
    }

    .homepage .wanboldon-logo {
        max-width: 290px;
        max-height: 230px;
    }

    .homepage .business-address {
        font-size: 10px;
        margin-top: 12px;
    }

    .homepage .home-side {
        height: 40vh;
        height: 40svh;
        min-height: 190px;
    }

    .homepage .sport-label {
        bottom: 13px;
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* ========================================
   19. TENNIS COURT PRICING
   ======================================== */

.tennis-pricing {
    max-width: 500px;
    margin: 15px auto;
    padding: 10px;
}

.tennis-pricing h2 {
    margin: 0 0 12px;
    text-align: center;
    color: #333333;
    font-size: 22px;
}

.pricing-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pricing-card {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5ddd5;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pricing-card h3 {
    margin: 0;
    font-size: 17px;
    color: #333333;
}

.pricing-days {
    margin: 4px 0 10px;
    color: #777777;
    font-size: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eee8e2;
    font-size: 12px;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row strong {
    white-space: nowrap;
    color: #333333;
    font-size: 12px;
}

.unavailable-price strong {
    color: #b33b32;
}

@media (max-width: 600px) {
    .tennis-pricing {
        padding: 5px;
    }

    .pricing-container {
        gap: 8px;
    }

    .pricing-card {
        padding: 9px;
    }

    .price-row {
        flex-wrap: wrap;
        gap: 3px;
        font-size: 11px;
    }

    .price-row strong {
        font-size: 11px;
    }
}

.unavailable-price strong {
    color: #b33b32;
}

/* Stack the cards on narrow screens */
@media (max-width: 600px) {
    .tennis-pricing {
        padding: 12px;
    }

    .pricing-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pricing-card {
        padding: 18px;
    }
}
/* ========================================
   20.  TENNIS DATE DISPLAY 
   ======================================== */
.date-navigation button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #eeeeee;
    color: #777777;
    border-color: #cccccc;
}

.date-navigation button:disabled:hover {
    background-color: #eeeeee;
    color: #777777;
}
.date-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.date-navigation button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #16834a;
    border-radius: 8px;
    background: white;
    color: #16834a;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.date-navigation button:hover {
    background: #16834a;
    color: white;
}

.selected-date-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 600px) {
    .date-navigation {
        gap: 8px;
    }

    .date-navigation button {
        padding: 8px;
        font-size: 12px;
    }

    .selected-date-display {
        gap: 5px;
    }
}
.selected-date-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 12px auto;
    padding: 10px 10px;
    max-width: 350px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5ddd5;
}

.selected-date-display h2 {
    margin: 0;
    font-size: 20px;
    color: #333333;
}

.selected-date-display p {
    margin: 0;
    font-size: 20px;
    color: #333333;
}
.date-separator {
    color: #999999;
    font-size: 18px;
}


/* ========================================
   21. TENNIS PAGE STYLING
   ======================================== */

/* Weekday and weekend rates side by side */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.pricing-card {
    border: 1px solid #e5ddd5;
    border-radius: 10px;
    padding: 15px;
    min-width: 0;
    box-sizing: border-box;
}

/* Keep pricing text properly spaced */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.price-row span {
    min-width: 0;
}

.price-row strong {
    white-space: nowrap;
}

/* Display selected day and date on one line */
.selected-date-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 12px auto 20px;
    flex-wrap: wrap;
}

.selected-date-display h2,
.selected-date-display p {
    margin: 0;
}

.date-separator {
    color: #999999;
}

/* Responsive layout for phones */
@media (max-width: 650px) {
    .pricing-container {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 12px;
    }

    .price-row {
        gap: 8px;
    }
}

/* ========================================
   22. PICKLE PRICING
   ======================================== */
.pickleball-pricing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 250px));
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin: 25px auto;
}

.pickleball-pricing .pricing-card {
    width: 100%;
    box-sizing: border-box;
}

.pickleball-pricing .pricing-card h2 {
    margin-top: 0;
    margin-bottom: 6px;
}

.pickleball-pricing .court-description {
    color: #777;
    margin-top: 0;
    margin-bottom: 18px;
}

.pickleball-pricing .price-row {
    padding: 10px 0;
    border-bottom: 1px solid #eee5dd;
}

.pickleball-pricing .price-row:last-child {
    border-bottom: none;
}

@media (max-width: 850px) {
    .pickleball-pricing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .pickleball-pricing {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   23. INFORMATION
   ======================================== */

.info-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 30px;
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 50px auto 30px;
    padding: 40px 25px;
    box-sizing: border-box;
    background: #f8f8f8;
    border-radius: 12px;
}

.info-column {
    min-width: 0;
}

/* SECTION HEADINGS */
.info-column h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 30px;
    text-align: center;
}

/* HOW TO BOOK */
.info-column:first-child {
    text-align: left;
}

.booking-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px 0;
    padding: 0;
    text-align: left;
}

.step-number {
    display: flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #245c43;
    color: rgb(255, 255, 255);
    font-weight: bold;
}

.booking-step > div {
    flex: 1;
    min-width: 0;
}

.booking-step h3 {
    margin: 0 0 6px;
    font-size: 20px;
    text-align: left;
}

.booking-step p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

/* CONTACT US */
.contact-item {
    margin-bottom: 10px;
}

.contact-item h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.contact-item p {
    margin: 0 0 1px;
    color: #666;
    font-size: 17px;
    line-height: 1.4;
}

.info-column a {
    color: #245c43;
    overflow-wrap: anywhere;
}

/* location*/
.info-map {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.info-map iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
}

.location-address {
    margin: 12px 0 5px;
    color: #666;
    font-size: 17px;
    line-height: 1.6;
}

.map-directions {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    text-decoration: none;
}

.map-directions:hover {
    text-decoration: underline;
}

/* TABLET */
@media (max-width: 900px) {
    .info-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .info-column:last-child {
        grid-column: 1 / -1;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .info-section {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
        padding: 25px 18px;
    }

    .info-column:last-child {
        grid-column: auto;
    }
}
/* ========================================
   BOOKING DETAILS MODAL
   ======================================== */


.booking-modal[hidden] {
    display: none !important;
}

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 25px 15px;
    background: rgba(0, 0, 0, 0.6);
}

.booking-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding: 30px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.booking-modal-content h1 {
    margin: 5px 35px 8px 0;
    color: #16834a;
    font-size: 26px;
}

.booking-modal-content > p {
    color: #666;
    margin-bottom: 22px;
}

.close-booking-modal {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f1f1f1;
    color: #333;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.close-booking-modal:hover {
    background: #e1e1e1;
}

.booking-court-photo {
    margin: 20px 0;
    text-align: center;
}

.booking-court-photo img {
    display: block;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    background: #f1f4f1;
    object-fit: cover;
}

.booking-court-photo p {
    margin: 8px 0;
    color: #666;
    font-size: 13px;
}

.booking-summary {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e5ddd5;
    border-radius: 10px;
    background: #f8faf8;
}

.booking-summary p {
    margin: 7px 0;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.booking-modal .booking-form {
    max-width: none;
    margin: 20px 0 0;
}

.booking-modal .booking-form label {
    margin-top: 16px;
}

.booking-modal .booking-form input,
.booking-modal .booking-form select {
    width: 100%;
    min-height: 45px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    background: #fff;
    font: inherit;
}

.booking-modal .booking-form input:focus,
.booking-modal .booking-form select:focus {
    outline: 2px solid #16834a;
    border-color: #16834a;
}

.booking-countdown {
    text-align: center;
    padding: 12px;
    margin: 12px 0;
    border-radius: 8px;
    background-color: #fff3cd;
    color: #856404;
    font-weight: bold;
    font-size: 16px;
}
.field-error {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 5px;
}

.field-error[hidden] {
    display: none;
}

input[aria-invalid="true"] {
    border-color: #dc2626;
}

.booking-countdown[hidden] {
    display: none;
}
/* ========================================
   DURATION BUTTONS — 3 COLUMNS × 2 ROWS
   ======================================== */

#duration-buttons,
.duration-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 10px !important;
    width: 100% !important;
    align-items: stretch !important;
}

/* Individual duration buttons */
#duration-buttons button,
.duration-buttons button,
#duration-buttons .duration-option,
.duration-buttons .duration-option {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 6px !important;
    box-sizing: border-box !important;
    border: 2px solid #16834a !important;
    border-radius: 8px !important;
    background: #ffffff;
    color: #16834a;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

#duration-buttons button:hover,
.duration-buttons button:hover,
#duration-buttons .duration-option:hover,
.duration-buttons .duration-option:hover {
    background: #e8f4ec !important;
}

#duration-buttons button.active,
.duration-buttons button.active,
#duration-buttons .duration-option.active,
.duration-buttons .duration-option.active {
    background: #16834a !important;
    color: #ffffff !important;
}

.booking-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding: 18px 0;
    border-top: 1px solid #ddd;
    font-size: 17px;
}

.booking-total strong {
    color: #16834a;
    font-size: 25px;
}

.booking-modal .booking-form .continue-button {
    width: 100%;
    margin-top: 5px;
}

body.modal-open {
    overflow: hidden;
}


@media (max-width: 500px) {
    .booking-modal {
        padding: 10px;
    }

    .booking-modal-content {
        padding: 22px 18px;
    }

    .booking-modal-content h1 {
        font-size: 23px;
    }

    .booking-court-photo img {
        height: 170px;
    }
}

/* ========================================
   SELECTED DATE AND TIME — DETAILS BOX
   Labels on the left, values on the right
   ======================================== */

.booking-modal .selected-booking-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 20px 0;
    padding: 8px 18px;
    box-sizing: border-box;
    border: 1px solid #d9e5dc;
    border-radius: 10px;
    background: #f8faf8;
}

.booking-modal .selected-booking-info > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    width: 100%;
    min-width: 0;
    padding: 14px 0;
    box-sizing: border-box;
}

.booking-modal .selected-booking-info > div + div {
    border-top: 1px solid #e1e8e2;
}

/* Labels stay on the left */
.booking-modal .selected-booking-info span {
    display: block;
    text-align: left;
    color: #555;
    font-size: 15px;
}

/* Date and time values stay on the right */
.booking-modal .selected-booking-info strong {
    display: block;
    min-width: 0;
    text-align: right;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}


/* ========================================
   MOBILE LAYOUT
   ======================================== */

@media (max-width: 500px) {
    .booking-modal .court-name {
        margin: 12px 0 16px;
    }

    .booking-modal #booking-court-photo-caption {
        font-size: 22px;
    }

    .booking-modal .selected-booking-info {
        padding: 5px 12px;
    }

    .booking-modal .selected-booking-info > div {
        gap: 10px;
        padding: 12px 0;
    }

    .booking-modal .selected-booking-info span,
    .booking-modal .selected-booking-info strong {
        font-size: 14px;
    }
}
/* Duration options that overlap unavailable slots */
.duration-option:disabled,
.duration-option.unavailable-duration {
    background: #e5e5e5 !important;
    color: #999 !important;
    border-color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.75;
}

.duration-option:disabled:hover,
.duration-option.unavailable-duration:hover {
    background: #e5e5e5 !important;
}

/* Payment UI */

.payment-section {
    margin-top: 20px;
}

.payment-section[hidden] {
    display: none !important;
}

#booking-details-form[hidden] {
    display: none !important;
}

.back-to-booking {
    border: none;
    background: transparent;
    color: #176b52;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 12px;
    font: inherit;
}

.payment-instructions {
    color: #666;
    line-height: 1.5;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.payment-method {
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.payment-method.active {
    border-color: #176b52;
    background: #edf8f2;
    color: #176b52;
}

.payment-qr-container {
    text-align: center;
    margin: 20px 0;
}

.payment-qr-container img {
    display: block;
    width: 220px;
    max-width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    margin: 16px auto;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.payment-qr-container p {
    color: #666;
    font-size: 14px;
}

.payment-status-message {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
    text-align: center;
}
/* ========================================
   PAYMENT SECTION
   ======================================== */

.payment-section {
    margin-top: 20px;
}

.payment-section[hidden],
#booking-details-form[hidden] {
    display: none !important;
}

.back-to-booking {
    border: none;
    background: transparent;
    color: #176b52;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 12px;
    font: inherit;
}

.back-to-booking:hover {
    text-decoration: underline;
}

.payment-instructions {
    color: #666;
    line-height: 1.5;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.payment-method {
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s, border-color 0.2s;
}

.payment-method:hover {
    border-color: #176b52;
}

.payment-method.active {
    border-color: #176b52;
    background: #edf8f2;
    color: #176b52;
}

.payment-qr-container {
    text-align: center;
    margin: 20px 0;
}

.payment-qr-container img {
    display: block;
    width: 220px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 16px auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
}

.payment-qr-container p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.payment-status-message {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 16px;
}

@media (max-width: 480px) {
    .payment-method {
        padding: 12px 8px;
        font-size: 14px;
    }

    .payment-qr-container img {
        width: 190px;
    }
}
/* =====================================
    CHANGE COURT DURING BOOKING PROCESS
   =====================================*/
.court-switcher {
    display: flex;
    gap: 12px;
    width: 100%;
}

.court-switch-button {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #198754;
    border-radius: 8px;
    background: white;
    color: #198754;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.court-switch-button:hover {
    background: #e8f5ee;
}

.court-switch-button.active {
    background: #198754;
    color: white;
}

.court-switch-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/*==============================
     TENNIS RENTAL EQUIPMENT
  ==============================*/


.equipment-rental-section {
    width: 100%;
    max-width: 500px;
    margin: 25px auto;
    padding: 24px;
    border: 1px solid #e5ddd5;
    border-radius: 12px;
    background: #fff;
    text-align: left;
}

.equipment-rental-section[hidden] {
    display: none !important;
}

.equipment-rental-section h2 {
    margin: 0;
    color: #16834a;
    font-size: 24px;
}

.equipment-rental-section > p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.rental-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    padding: 18px 0;
    border-top: 1px solid #e5ddd5;
    border-bottom: 1px solid #e5ddd5;
    font-size: 18px;
    color: #16834a;
}

.rental-info > strong,
.coach-toggle-copy > strong {
    display: block;
    margin: 0;
    color: #16834a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.rental-info p,
.coach-toggle-copy small {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.rental-info small {
    color: #666;
    display: block;
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
}

/* Racket Quantity */
.rental-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rental-quantity button {
    width: 36px;
    height: 36px;
    border: 1px solid #16834a;
    border-radius: 6px;
    background: white;
    color: #16834a;
    font-size: 22px;
    cursor: pointer;
}

.rental-quantity button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rental-quantity input {
    width: 42px;
    padding: 8px 2px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
}

/* Coach Section */
.coach-request-option {
    width: 100%;
    margin: 0;
    padding: 18px 0;
    border: none !important;
    outline: none !important;
    border-radius: 0;
    background: transparent !important;
    text-align: left;
}

.coach-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    width: 100%;
    margin: 0;
    cursor: pointer;
    text-align: left;
}

.coach-toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

/* Rental Summary */
.rental-summary {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background: #f8faf8;
}

.rental-summary p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0;
}

.rental-summary strong {
    color: #16834a;
}

/* Back Button */
.rental-back-button {
    display: inline-block;
    width: auto;
    margin: 0 0 14px;
    padding: 9px 12px;
    text-align: left;
    font-size: 16px;
}

/* Rental Action Button */
.rental-actions {
    display: flex;
    width: 100%;
    margin-top: 16px;
}

.rental-actions #continue-to-payment {
    display: block;
    width: 100%;
    margin: 0;
    padding: 13px 20px;
    border: 0;
    border-radius: 8px;
    background: #16834a;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.rental-actions #continue-to-payment:hover {
    background: #105c34;
}

/* Responsive Layout */
@media (max-width: 400px) {
    .equipment-rental-section {
        padding: 16px;
    }

    .rental-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 27px;
    flex: 0 0 48px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #aaa;
    border-radius: 27px;
    transition: 0.2s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 21px;
    height: 21px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
    background: #218838;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(21px);
}

.toggle-switch input:focus-visible + .toggle-slider {
    outline: 3px solid #80bdff;
    outline-offset: 2px;
}


/* ========================================
   24. RESERVATION RECEIPT / PREVIEW
   ======================================== */

.reservation-receipt-section {
    width: 100%;
    margin: 25px auto;
}

.reservation-receipt-section[hidden] {
    display: none !important;
}

.receipt-card {
    width: 100%;
    max-width: 620px;
    margin: 18px auto;
    padding: 24px;
    background: #ffffff;
    color: #16834a;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.07);
    text-align: left;
}

.receipt-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    color: #ffffff;
}

.receipt-header h2 {
    margin: 0;
    color: #16834a;
    letter-spacing: 2px;
}

.receipt-header p {
    margin: 0 0 12px;
    font-size: 11px;
    letter-spacing: 1px;
}

.receipt-label,
.receipt-pending {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    background: #e7f3e9;
    color: #ff03ff;
    font-size: 11px;
    font-weight: 700;
}

.receipt-booking-number {
    margin-top: 8px;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.receipt-header small {
    color: #777777;
}

.receipt-card h3 {
    margin: 16px 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.receipt-divider {
    margin: 16px 0;
    border-top: 1px dashed #cccccc;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin: 9px 0;
    font-size: 13px;
}

.receipt-row > span,
.receipt-service-row small {
    color: #777777;
}

.receipt-row > strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.receipt-service-row > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.receipt-service-row small {
    font-size: 11px;
    line-height: 1.4;
}

.receipt-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.receipt-grand-total strong {
    color: #245b3d;
    font-size: 25px;
}

.receipt-note {
    color: #777777;
    font-size: 11px;
    line-height: 1.5;
}

.receipt-payment-note {
    margin-top: 16px;
    padding: 13px;
    border-radius: 9px;
    background: #f4f5f4;
    font-size: 12px;
}

.receipt-payment-note p {
    margin: 5px 0 0;
    color: #666666;
    line-height: 1.5;
}

.receipt-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    text-align: center;
}

#proceed-from-receipt-to-payment {
    display: block;
    width: 100%;
    margin: 10px auto;
}
.receipt-footer p {
    margin: 0;
    color: #666666;
    font-size: 12px;
}

@media (max-width: 480px) {
    .receipt-card {
        padding: 17px;
    }

    .receipt-row {
        font-size: 12px;
    }

    .receipt-grand-total strong {
        font-size: 22px;
    }
}


/* ========================================
   RECEIPT COLOR SETTINGS + COMPACT SPACING
   Change the values below to customize the receipt colors.
   Defaults retain the original black / gray appearance.
   ======================================== */
[hidden] {
    display: none !important;
}

.reservation-receipt-section {
    margin: 6px auto;
    font-size: 14px;
}

.receipt-card {
    background: #ffffff;
    color: #16834a;
    border-color: #e2e2e2;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    padding: 20px;
    font-size: 14px;
}

.receipt-header h2 {
    color: #16834a;
    font-size: 22px;
}

.receipt-header p {
    color: #252525;
    margin-bottom: 6px;
    font-size: 12px;
}

.receipt-label,
.receipt-pending {
    background-color: #e7f3e9;
    color: #245b3d;
    font-size: 11px;
}

.receipt-booking-number {
    color: #16834a;
    font-size: 20px;
}

.receipt-header small {
    color: #777777;
    margin-bottom: 6px;
    font-size: 11px;
}

.receipt-card h3 {
    color: #252525;
    margin: 12px 0 7px;
    font-size: 15px;
}

.receipt-divider {
    margin: 11px 0;
    border-color: #cccccc;
}

.receipt-row {
    gap: 10px;
    margin: 6px 0;
    color: #252525;
    font-size: 13px;
}

.receipt-row > span,
.receipt-service-row small {
    color: #777777;
    font-size: 12px;
}

.receipt-row > strong {
    color: #252525;
    font-size: 13px;
}

.receipt-grand-total {
    color: #252525;
    margin-top: 4px;
    font-size: 14px;
}

.receipt-grand-total strong {
    color: #16834a;
    font-size: 22px;
}

.receipt-note {
    color: #777777;
    margin: 6px;
    font-size: 12px;
}

.receipt-payment-note {
    margin-top: 6px;
    background: #f4f5f4;
    color: #252525;
    border: 1px solid #e2e2e2;
    padding: 10px 12px;
    font-size: 12px;
}

.receipt-payment-note p,
.receipt-footer p {
    color: #777777;
    font-size: 11px;
}

.receipt-footer {
    gap: 6px;
    margin-top: 13px;
    font-size: 12px;
}

/* Hide the date/time summary card only when the receipt/payment flow is active. */
.selected-booking-info[hidden] {
    display: none !important;
}

/* Keep the timer visible above the payment panel. */
.booking-countdown {
    margin-bottom: 12px;
}


/* ========================================
   PAYMENT QR CODE IMAGE ENLARGEMENT
   ======================================== */
.payment-qr-container img {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-qr-container img:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.qr-image-modal[hidden] {
    display: none !important;
}

.qr-image-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
}

.qr-image-modal-picture {
    display: block;
    max-width: min(92vw, 620px);
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    cursor: zoom-out;
}

.qr-image-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #222222;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.qr-image-modal-close:hover {
    background: #eeeeee;
}

body.qr-modal-open {
    overflow: hidden;
}


/* QR enlargement: mobile-friendly sizing and clear close control */
.qr-image-modal {
    touch-action: manipulation;
}

.qr-image-modal-picture {
    max-width: min(92vw, 620px);
    max-height: 82vh;
}

.qr-image-modal-close {
    z-index: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .qr-image-modal {
        padding: 14px;
    }

    .qr-image-modal-picture {
        max-width: 94vw;
        max-height: 78vh;
        padding: 6px;
    }

    .qr-image-modal-close {
        top: max(12px, env(safe-area-inset-top));
        right: 12px;
        width: 48px;
        height: 48px;
        font-size: 30px;
    }
}


/* ========================================
   PAYMENT ACCOUNT DETAILS
   ======================================== */

.payment-account-card {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 18px;
    border: 1px solid #d9e4dc;
    border-radius: 10px;
    background-color: #ffffff;
    text-align: left;
}

.payment-account-card h3 {
    margin: 0 0 14px;
    text-align: center;
}

.payment-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
}

.payment-account-row > span {
    color: #555555;
    font-weight: bold;
}

.payment-account-number-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-account-number-group strong {
    overflow-wrap: anywhere;
}

.copy-payment-number {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background-color: #16834a;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.copy-payment-number:hover {
    background-color: #105c34;
}

.payment-account-note,
.copy-payment-status {
    display: block;
    margin: 12px 0 0;
    color: #666666;
    font-size: 13px;
}

.copy-payment-status {
    color: #16834a;
    font-weight: bold;
}

@media (max-width: 480px) {
    .payment-account-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .payment-account-number-group {
        justify-content: flex-start;
    }
}


/* ========================================
   PROOF OF PAYMENT UPLOAD
   ======================================== */


.payment-proof-dropzone {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;

    width: 100%;
    min-height: 190px;
    margin-top: 12px;
    padding: 25px 15px;

    border: 2px dashed #16834a;
    border-radius: 10px;
    background-color: #f8fcf9;

    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.payment-proof-dropzone[hidden] {
    display: none !important;
}

.payment-proof-dropzone:hover,
.payment-proof-dropzone.drag-over {
    background-color: #edf8f1;
    border-color: #105c34;
}

/* Upload icon */
.payment-proof-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    margin-bottom: 2px;

    border-radius: 50%;
    background-color: #e3f3e9;
    color: #16834a;

    font-size: 30px;
    font-weight: 400;
    line-height: 1;
}

/* Instructions */
.payment-proof-dropzone > span:not(.payment-proof-upload-icon) {
    display: block;
    width: 100%;
    color: #666666;
    font-size: 13px;
    line-height: 1.5;
}

/* File requirements */
.payment-proof-dropzone small {
    display: block;
    width: 100%;
    margin-top: 2px;
    color: #888888;
    font-size: 12px;
    line-height: 1.5;
}

/* Keyboard accessibility */
.payment-proof-dropzone:focus-within {
    outline: 2px solid #16834a;
    outline-offset: 3px;
}

/* ========================================
   PROOF OF PAYMENT IMAGE PREVIEW
   ======================================== */

.payment-proof-preview-container {
    margin-top: 15px;
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background-color: #ffffff;
    text-align: center;
}

.payment-proof-preview-container p {
    margin: 0 0 10px;
    font-weight: bold;
}

.payment-proof-preview-container img {
    display: block;
    width: 100%;
    max-width: 320px;
    max-height: 320px;
    margin: 0 auto 12px;
    object-fit: contain;
    border-radius: 6px;
}
.payment-proof-dropzone.drag-over {
    border-color: #2563eb;
    background-color: #eff6ff;
}


/* ========================================
   REMOVE PROOF OF PAYMENT IMAGE
   ======================================== */

.remove-payment-proof {
    padding: 9px 14px;
    border: none;
    border-radius: 6px;
    background-color: #c62828;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.remove-payment-proof:hover {
    background-color: #a51f1f;
}
/* ========================================
   PAYMENT SUCCESS / FINAL RECEIPT
   ======================================== */

.payment-success-section {
    width: 100%;
    padding: 20px 0;
}

.payment-success-message {
    text-align: center;
    max-width: 600px;
    margin: 5px;

}

.payment-success-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #e5f5e9;
    color: #218838;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    font-weight: bold;
}

.payment-success-message h2 {
    margin-bottom: 5px;
}


.payment-review-note {
    font-weight: 600;
}

#final-receipt-card {
    margin: 0 auto;
}

#final-receipt-home-button {
    display: block;
    margin: 25px auto 0;
}
/* FINAL RECEIPT PAYMENT REVIEW NOTICE */
.receipt-review-note {
    margin: 15px 0 0;
    padding: 12px 10px 0;
    border-top: 1px dashed #ccc;
    color: #666;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}
/* ADMIN LOGIN PAGE TAB */

.home-footer {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.home-footer a {
    display: inline-block;
    padding: 9px 28px;
    background-color: #e9e4da;
    color: #174c35;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #d8d0c3;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.2s;
}

.home-footer a:hover {
    background-color: #ded8cb;
}
/* ========================================
   OPEN PLAY EVENT DETAILS MODAL
======================================== */

.openplay-details-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.openplay-details-modal[hidden] {
    display: none;
}

.openplay-details-content {
    position: relative;
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.openplay-details-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #000000;
    text-align: left;
}

.openplay-details-content p {
    margin: 12px 0;
    line-height: 1.5;
    color: #333;
}

#openplay-details-description {
    margin-top: 20px;
    white-space: pre-wrap;
}

#openplay-details-link {
    display: table;
    margin: 15px auto 0;
    padding: 10px 18px;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

#openplay-details-link:hover {
    background: #125ca5;
}

#close-openplay-details {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
    color: #555;
}
