body {
    font-family: "Raleway", sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container-wrapper {
    width: 90%;
    max-width: 750px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: visible;
    position: relative;
    
    /* New Flexbox properties */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


    input {
        font-size: 16px; /* Larger text inside input fields */
        padding: 10px; /* Adds spacing */
        width: 100%; /* Full-width input boxes */
    }

h2, h4 {
    text-align: center;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 20px;
}

form {
    display: grid;
    gap: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background: #f9f9f9;
    transition: 0.3s;
}

.input-group:hover {
    border-color: #007bff;
}

.input-group i {
    margin-right: 10px;
    color: #007bff;
}

input, select, textarea {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    padding: 5px;
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

button {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #0056b3;
}


/* Base Styles — Desktop-first fallback */
body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
    padding: 12px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.btn {
    padding: 12px 24px;
    font-size: 1rem;
    background-color: #0066cc;
    color: white;
    border: none;
    cursor: pointer;
}

footer {
    margin-top: 40px;
    padding: 20px;
    font-size: 1rem;
    text-align: right;
    background-color: #eee;
}

/* ✅ Responsive Breakpoints — Mobile-first refinements */

/* ≤540px */
@media screen and (max-width: 540px) {
    body {
        font-size: 15.5px;
    }

    .container-wrapper {
        padding: 18px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 10px;
    }

    form {
        gap: 16px;
    }

    .card-container {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
    overflow-wrap: break-word; /* Prevent content overflow */
}

/* Optional for flex/grid parents */
@media screen and (max-width: 540px) {
    .card-container {
        flex: 1 1 100%;
    }
}
}

/* ≥820px — Restore desktop-like padding and font sizing, and enhance tablet layout */
@media screen and (min-width: 820px) and (max-width: 1280px) {
    .container-wrapper {
        padding: 32px;
    }

    body {
        font-size: 16px;
    }

    header h1 {
        font-size: 1.9rem;
    }

    form {
        gap: 24px;
        max-width: 720px;
        margin: 0 auto;
        padding: 24px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select {
        font-size: 1rem;
        padding: 12px;
        border-radius: 6px;
    }

    label {
        font-size: 1rem;
        margin-bottom: 6px;
        font-weight: 500;
    }

    .section-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .btn,
    .btn-submit {
        padding: 14px 20px;
        font-size: 1.05rem;
    }

    .card-container {
        width: 100%;
        max-width: 600px;
        margin: 0 auto 20px;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .form-icon {
        font-size: 1.1rem;
        margin-right: 8px;
    }
}

/* ≤480px */
@media screen and (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .container-wrapper {
        padding: 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    footer {
        text-align: center;
    }

    .btn,
    input[type="number"],
    .card-container {
        width: 100%;
    }

    .card-container {
        margin-bottom: 15px;
    }
}

/* ≤430px */
@media screen and (max-width: 430px) {
    body {
        font-size: 14.5px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    form {
        gap: 14px;
    }

    .btn {
        font-size: 0.95rem;
    }
}

/* ≤375px */
@media screen and (max-width: 375px) {
    body {
        font-size: 14px;
    }

    header h1 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    .container-wrapper {
        padding: 12px;
    }

    form {
        gap: 12px;
    }

    footer {
        padding: 10px;
        font-size: 0.9rem;
    }
}

.formcontent.hidden {
  display: none;
}

.formcontent.visible {
  display: block; /* or flex/grid based on your layout */
}

@media screen and (max-width: 768px) {
  .formcontent input,
  .formcontent button {
    width: 100%;
    font-size: 1rem;
  }
/* iPhone SE and smaller devices */
@media (max-width: 375px) {
  .formcontent {
    padding: 0.5rem;
    font-size: 13px;
    flex-direction: column;
  }
}

/* Small mobiles: iPhone XR, Androids around 430px */
@media (max-width: 430px) {
  .formcontent {
    padding: 0.75rem;
    font-size: 14px;
    flex-wrap: wrap;
  }
}

/* Larger phones and compact tablets */
@media (max-width: 480px) {
  .formcontent {
    padding: 1rem;
    font-size: 15px;
  }
}

/* Mid-range tablets like iPad Mini in landscape */
@media (max-width: 540px) {
  .formcontent {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* iPads and medium screens (Safari quirks live here!) */
@media (min-width: 820px) and (max-width: 1280px) {
  .formcontent {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem;
    font-size: 16px;
    align-items: center;
  }
}
  .formcontent {
    padding: 1rem;
  }
}
@media print {
    body * {
        visibility: hidden;
    }
    #partyBookingForm, #partyBookingForm * {
        visibility: visible;
    }
}


/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-family: "Raleway", sans-serif;
}

thead tr {
    background-color: #007bff;
    color: white;
    text-align: center;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

input[type="number"] {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

/* Card container */
.card-container {
    width: 100%;
    max-width: 650px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    text-align: center;
}

.card-container h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.card-container p {
    font-size: 16px;
    color: #333;
}
.center {
      display: flex;
      justify-content: center;
      align-items: center;
    }
.party-area-card {
    background-color: #e0e0e0; /* Darker Grey */
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Slightly darker shadow */
    max-width: 800px;
    margin: 20px auto;
    border: 1px solid #bbb; /* Darker border */
}

.party-area-card h2, .party-area-card h3 {
    color: #222; /* Slightly darker text */
}

.party-area-card p, .party-area-card ul {
    color: #444; /* More contrast */
}
.popup {
    display: none;
    position: absolute;
    background-color: #fff;
    border-radius: 8px; /* Rounded corners for a polished look */
    border: 1px solid #ddd;
    padding: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    width: 90%; /* Uses more space on smaller screens */
    max-width: 400px; /* Prevents it from becoming too wide */
    top: 50px;
    left: 50%;
    transform: translateX(-50%); /* Centers it on the page */
    z-index: 1000;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #333;
}

/* Close button styling */
.popup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease-in-out;
}

.popup .close-btn:hover {
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .popup {
        width: 95%; /* Takes up more width on very small screens */
        font-size: 12px; /* Slightly smaller text for readability */
        padding: 10px;
    }
}

/* Tiny screens (≤ 375px) */
@media screen and (max-width: 375px) {
    .popup {
        width: 96%;
        font-size: 0.5rem;
        padding: 9px;

    }
}

/* Small screens (≤ 430px) */
@media screen and (max-width: 430px) {
    .popup {
        width: 95%;
        font-size: 12px;
        padding: 10px;
    }
}

/* Compact tablets and landscape phones (≤ 480px) */
@media screen and (max-width: 480px) {
    .popup {
        width: 94%;
        font-size: 12.5px;
        padding: 10px 12px;
    }
}

/* Midsize screens (≤ 540px) */
@media screen and (max-width: 540px) {
    .popup {
        width: 93%;
        font-size: 13px;
        padding: 12px;
    }
}

/* Standard small devices (≤ 600px) */
@media screen and (max-width: 600px) {
    .popup {
        width: 95%;
        font-size: 12px;
        padding: 10px;
    }
}


/* Close button for better interaction */
.popup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease-in-out;
}

.popup .close-btn:hover {
    color: #000;
}

.popup-content {
    font-size: 16px;
    max-height: 400px; /* Limits the height */
    overflow-y: auto; /* Enables vertical scrolling */
    padding-right: 10px; /* Prevents scrollbar overlap */
    padding-right: 10px; /* Prevents scrollbar overlap */
}

.hover-trigger {
    color: blue;
    cursor: pointer;
    text-decoration: underline;
}
#termsTrigger {
    position: relative;
}

        .section {
            background: white;
            padding: 15px;
            margin: 10px 0;
            border-radius: 5px;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        }
        .highlight {
            color: #d62d20;
            font-size: 18px;
            font-weight: bold;
        }

.hover-button {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #d62d20;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.button-disabled {
    background-color: #ccc; /* Light gray */
    color: #666; /* Faded text */
    cursor: not-allowed; /* Shows a "not allowed" cursor */
}

.table-wrapper {
  overflow-x: auto;
}

/* Base form layout */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Input group styling */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Icons and inputs */
.input-group i {
  font-size: 1.2rem;
  color: #007bff;
}

.input-group input,
.input-group select,
.input-group textarea {
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

/* Button container */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Responsive adjustments */
@media screen and (min-width: 600px) {
  .input-group {
    flex-direction: row;
    align-items: center;
  }

  .input-group i {
    margin-right: 10px;
    margin-bottom: 0;
  }

  .input-group input,
  .input-group select {
    flex: 1;
  }

  .button-container {
    flex-direction: row;
    justify-content: center;
  }

  button {
    width: auto;
    padding: 12px 24px;
  }
}

@media screen and (min-width: 1024px) {
  form {
    max-width: 800px;
    margin: 0 auto;
  }

  .input-group input,
  .input-group select {
    font-size: 1.1rem;
  }

  button {
    font-size: 1.1rem;
  }
}
