

        input, textarea, select {
            font-size: 18px; /* Standard readable size */
            padding: 4px 10px ;
            height: auto;
        }


        /* Form Container */
        .form-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Radio Button Group */
        .radio-group {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .radio-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: Arial, sans-serif;
            font-size: 18px;
            font-weight: 600;
            color: #111;
            cursor: pointer;
        }

        /* Input Row */
        .input-row {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 25px;
            flex-wrap: wrap;
            align-items: flex-start;
        }

        .input-group {
            text-align: center;
        }

        .input-group label {
            display: block;
            font-family: Arial, sans-serif;
            font-size: 18px;
            font-weight: 600;
            color: #111;
            margin-bottom: 10px;
        }

        /* Form Inputs */
        .form-input {
            text-align: left;
            padding: 8px 6px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 18px;
            font-weight: 500;
            box-sizing: border-box;
        }


        input[type="date"] {
            text-align: left  !important;
            padding: 4px 4px 4px 2px  !important; /* top, right, bottom, left */
            min-width: 130px;
            width: 130px;
            box-sizing: border-box;
            text-indent: 0; /* Remove any text indentation */
        }

        input[type="date"]::-webkit-calendar-picker-indicator {
            position: relative;
            right: 0px;
            margin-left: 0px;
        }

        input[type="number"].form-input {
            width: 60px;
        }

        input[type="text"].form-input,
        input[type="email"].form-input,
        input[type="tel"].form-input {
            width: 130px;
        }

        /* Button Row */
        .button-row {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
            flex-wrap: wrap;
            align-items: center;
        }

        /* Buttons */
        .conditions-btn,.tech-prob-btn {
            font-size: 20px;
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 10px;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            background: white;
            color: darkblue;
            border: 1px solid blue;
        }

        .conditions-btn a {
            color: darkblue;
            text-decoration: none;
        }

        .calculate-btn {
            font-size: 20px;
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 10px;
            border: none;
            cursor: pointer;
            background-color: #000080;
            color: white;
        }

        .book-btn {
            font-size: 20px;
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 10px;
            border: 1px solid blue;
            margin-left: 20px;
            cursor: pointer;
            background-color: #17571c;
            color: white;
        }

        .result-buttons {
            font-size: 20px;
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 10px;
            margin-top: 20px;
            text-align: center;
        }

        .change-dates-btn {
            font-size: 20px;
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 10px;
            padding: 10px 20px;
            border: none;
            cursor: pointer;
            background-color: #000080;
            color: white;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }

        th, td {
            border: 1px solid #ccc;
            padding: 8px;
            text-align: center;
        }

        th {
            background-color: #f5f5f5;
            font-weight: bold;
        }

        /* Booking Data Section */
        .booking-data {
            margin-top: 20px;
            padding: 15px;
            background-color: #f9f9f9;
            border-radius: 8px;
        }

        .data-row {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        /* Textarea */
        .form-textarea {
            width: 100%;
            max-width: 500px;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-family: Arial, sans-serif;
            font-size: 18px;
            resize: vertical;
            margin: 10px auto;
            display: block;
        }

        .copyable-result {
            cursor: pointer;
            transition: background-color 0.3s;
            padding: 10px;
            border-radius: 5px;
        }

        .copyable-result:hover {
            background-color: #f0f0f0;
        }

        .copyable-result:active {
            background-color: #e0e0e0;
        }

        #copyMessage {
            font-size: 14px;
            animation: fadeInOut 2s ease-in-out;
        }

        @keyframes fadeInOut {
            0% { opacity: 0; }
            20% { opacity: 1; }
            80% { opacity: 1; }
            100% { opacity: 0; }
        }

        /* Availability Container Styles - copied from availability.php */
        #availabilityContainer {
            max-width: 655px;
            margin: 10px;
            padding: 10px;
            text-align: center;
            border: 1px solid #ddd;
            border-radius: 10px;
        }

        .availability-content {
            font-size: 18px;
            margin-top: 0;
        }

        .availability-content p {
            color: #000;
            line-height: 1.4;
            margin-bottom: 15px;
        }

        .availability-content a {
            color: #050778;
            text-decoration: none;
            background-image: none;
            padding: 0;
            margin: 0;
            display: block; /* Each link on its own line */
            margin-bottom: 5px; /* Space between links */
        }

        .availability-content a:hover {
            color: red;
        }

        .availability-content a:active {
            color: #8A4437;
        }

        .availability-content h2 {
            font-weight: normal; /* NOT bold */
            font-size: 22px;
            color: #000;
            margin-bottom: 15px;
            text-align: center;
        }

        .availability-content .section-title {
            font-weight: bold; /* This SHOULD be bold */
            color: #000;
            margin: 10px 0 10px 0;
            font-size: 22px;
            display: block;
            text-align: center;
        }

        /* Ensure proper spacing between sections */
        .availability-section {
            margin-bottom: 15px;
        }

        /* Center align all content */
        .periods-container {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .red-content {
            color: red;
            padding: 10px;
            background-color: #fff0f0;
            border: 1px solid #ff0000;
            border-radius: 5px;
            width: fit-content;
            margin: auto;
            margin-top: 15px;
            margin-bottom: 15px;
        }

        .red-content a {
            color: #050778;
            text-decoration: none;
            background-image: none;
            padding: 0;
            margin: 0;
            display: block; /* Each link on its own line */
            margin-bottom: 5px; /* Space between links */
        }

        .red-content a:hover {
            color: red;
        }

        .red-content a:active {
            color: #8A4437;
        }


        /* ============================================
           BOOKING FORM STYLES - IMPROVED VERSION
           ============================================ */

        /* Booking Form Container */
        .booking-form-container, #bookingFormContainer {
            max-width: 655px !important;
            margin: 10px 10px 0 10px  !important;
            background: #adcce9 ; /* Light blue background like calculator form*/
            border: 2px solid #000000;
            border-radius: 10px;
            padding: 20px 15px !important; /* Reduced side padding for alignment */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            animation: fadeInBooking 0.3s ease-in;
            box-sizing: border-box !important;
            color: black;
            text-weight;500;
            font-size: 18px;
        }


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

        /* Booking Header */
        .booking-header {
            text-align: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #81c784;
        }

        .booking-header h3 {
            color: black;
            font-size: 24px;
            margin-bottom: 8px;
            font-weight: bold;
        }

        .booking-header p {
            color: #388e3cblack;
            font-size: 16px;
            margin: 0;
        }

        /* Form Grid - Better alignment */
        .booking-form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 8px; /* Reduced vertical distance between fields */
            margin-bottom: 12px; /* Reduced from 15px */
        }

        /* Special columns for specific fields */
        .booking-form-row.title-row {
            grid-template-columns: 120px 1fr 1fr; /* Title, First Name, Last Name */
        }

        .booking-form-row.contact-row {
            grid-template-columns: 1fr 1fr 1fr; /* Email, Telephone, Mobile */
        }

        .booking-form-row.address-row {
            grid-template-columns: 1fr 120px 1fr; /* Address, Postcode, City */
        }

        .booking-form-row.country-row {
            grid-template-columns: 1fr 1fr; /* country dropdown, country text */
        }
        /* Make the country group span 1 column only when manual input is hidden: */
        .booking-form-row.country-row .booking-form-group {
            grid-column: span 1; /* Span 1 column by default */
        }

        .booking-form-row.additional-row {
            grid-template-columns: 1fr 100px 1fr; /* Arrivaltime, Pets */
        }

        /* Form Groups */
        .booking-form-group {
            display: flex;
            flex-direction: column;
        }

        .booking-form-group label {
            margin-bottom: 5px;
            font-weight: 600;
            color: black;
            font-size: 18px;
            text-align: left;
            margin-left: 0; /* Align labels to left */
        }

        /* Multi-line label for guest comments */
        .booking-form-group.guest-comments label {
            line-height: 1.3;
            height: 2.6em; /* Two lines */
            display: flex;
            align-items: flex-end;
        }

        .booking-form-group label:after {
            content: " ▪";
            color: #ff0000;
            font-size: 20px;
            display: inline;
        }

        /* Remove required indicator for Title and Telephone */
        .booking-form-group label[for="title"]:after,
        .booking-form-group label[for="telephone"]:after,
        .booking-form-group label[for="arrivalTime"]:after,
        .booking-form-group label[for="pets"]:after,
        .booking-form-group label[for="petType"]:after,
        .booking-form-group label[for="guestComments"]:after,
        .booking-form-group label[for="notes"]:after {
            content: "";
        }

        /* Form Inputs - Match calculator height */
        .booking-form-input {
            width: calc(100% - 30px); /* 15px from left + 15px from right */
            margin: 0 0px; /* Align to 15px from borders (changed to 0px to align with labels)*/
            padding: 8px 12px; /* Reduced height to match calculator */
            border: 1px solid Black;
            border-radius: 6px;
            font-size: 18px;
            color: black;
            background: #f9f9f9;
            transition: all 0.3s ease;
            box-sizing: border-box;
            height: 36px; /* Fixed height to match calculator */
        }

        /* Full width fields */
        .booking-form-group.full-width .booking-form-input {
            width: calc(100% - 30px);
            margin: 0 15px;
        }

        /* Textarea specific */
        textarea.booking-form-input {
            height: auto;
            min-height: 80px; /* Reduced from 100px */
            resize: vertical;
            font-family: inherit;
            padding: 10px 12px;
        }

        /* Select dropdowns */
        select.booking-form-input {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232e7d32' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 12px;
            padding-right: 35px;
        }

        /* Focus states */
        .booking-form-input:focus {
            outline: none;
            border-color: #4caf50;
            background: white;
            box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
        }

        /* Form Buttons */
        .booking-form-buttons {
            display: flex;
            justify-content: flex-end;
            gap: 15px;
            margin-top: 25px;
            padding-top: 20px;
            border-top: 2px solid #c8e6c9;
        }

        /* Add these styles: */
        .hidden {
            display: none !important;
        }

        .booking-btn {
            padding: 10px 25px; /* Reduced height */
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 120px;
            text-align: center;
            height: 40px; /* Fixed button height */
        }

        .booking-btn-submit {
            background: #17571C;
            color: white;
        }

        .booking-btn-submit:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .booking-btn-submit:disabled:hover {
            background: #1E7D24;
            transform: none;
            box-shadow: none;
        }

        .confirm-btn-text {
            font-weight: 600;
        }

        .confirm-btn-text.pending {
            color: #000;
            background: white;
            padding: 4px 8px;
            border-radius: 4px;
        }

        .booking-btn-submit:hover {
            background: #124715;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .booking-btn-cancel {
            background: #353535;
            color: white;
        }

        .booking-btn-cancel:hover {
            background: #555555;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .booking-form-container {
                margin-left: 5px;
                margin-right: 5px;
                padding: 15px 10px;
            }

            .booking-form-row {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .booking-form-row.title-row,
            .booking-form-row.contact-row,
            .booking-form-row.address-row,
            .booking-form-row.additional-row {
                grid-template-columns: 1fr;
            }

            .booking-form-input {
                width: calc(100% - 20px);
                margin: 0 10px;
            }

            .booking-form-buttons {
                flex-direction: column;
                gap: 10px;
            }

            .booking-btn {
                width: 100%;
                min-width: auto;
            }
        }

        @media (max-width: 480px) {
            .booking-header h3 {
                font-size: 20px;
            }

            .booking-header p {
                font-size: 18px;
            }

            .booking-form-input {
                padding: 6px 10px;
                height: 34px;
                font-size: 14px;
            }

            .booking-btn {
                padding: 8px 20px;
                font-size: 14px;
                height: 38px;
            }
        }
        @media (max-width: 480px) {
            .booking-header h3 {
                font-size: 20px;
            }

            .booking-form-section {
                padding: 15px;
            }

            .booking-form-section h4 {
                font-size: 16px;
            }

            .booking-form-input {
                padding: 10px 12px;
                font-size: 14px;
            }

            .booking-btn {
                padding: 12px 20px;
                font-size: 14px;
            }
        }


        @media (max-width: 764px) {
            .availability-content {
                font-size: 18px;
                line-height: 1.4;
            }

            .availability-content h2,
            .availability-content .section-title,
            .availability-content a {
                font-size: 18px;
            }
        }

        .availability-link {
            display: block;
            padding: 8px 12px;
            margin: 5px 0;
            background-color: #f0f8ff;
            border: 1px solid #ccc;
            border-radius: 5px;
            text-decoration: none;
            color: #000080;
            font-weight: normal;
            transition: background-color 0.3s;
        }

        .availability-link:hover {
            background-color: #e0f0ff;
            text-decoration: underline;
        }

        .availability-period {
            margin-bottom: 15px;
        }

        .availability-title {
            font-weight: bold;
            color: #000080;
            margin-bottom: 10px;
            font-size: 1.1em;
        }

        @media (max-width: 768px) {

          .form-container {
              max-width: 800px;
              margin: 0 auto;
              padding: 5px 5px 0 5px;
          }

          .form-input {
              text-align: left;
              padding: 5px 5px;
              border: 1px solid #ccc;
              border-radius: 4px;
              font-size: 18px;
              font-weight: 500;
              box-sizing: border-box;
          }

            .input-row {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 5px;
            }

            input[type="date"] {
                text-align: left  !important;
                padding: 4px 4px 4px 2px  !important; /* top, right, bottom, left */
                min-width: 130px;
                width: 130px;
                box-sizing: border-box;
                text-indent: 0; /* Remove any text indentation */
            }
        }

        @media (max-width: 450px) {
            /* Only target the LOS input group (third child in input-row) */
            .input-row .input-group:nth-child(3) {
                display: flex;
                align-items: center;
                gap: 8px;
                justify-content: center;
            }

            .input-row .input-group:nth-child(3) label {
                display: inline-block;
                margin-bottom: 0;
                white-space: nowrap;
            }

            /* Keep the date inputs side by side if they fit */
            .input-row {
                gap: 15px;
            }

            input[type="date"] {
                min-width: 130px;
                width: 130px;
            }
        }
