/* --------------------------------------------------------------
   UNIVERSAL WRAPPER PROTECTION (stops Avada overrides)
-------------------------------------------------------------- */
.suay-booking-form * {
    box-sizing: border-box;
    font-family: inherit;
}

/* --------------------------------------------------------------
   FORM WRAPPER
-------------------------------------------------------------- */
.suay-booking-form {
    max-width: 640px;
    margin: 0 auto;
    padding: 14px;
    background: #fff;
}

/* --------------------------------------------------------------
   FORM ROWS / LABELS
-------------------------------------------------------------- */
.row {
    margin-bottom: 18px;
}
.row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 15px;
    color: #222;
}

/* --------------------------------------------------------------
   INPUTS / SELECTS / TEXTAREAS
-------------------------------------------------------------- */
.row input,
.row select,
.row textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font-size: 16px;
    background: #fafafa;
    transition: border 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    line-height: 1.4;
}

.row input:focus,
.row select:focus,
.row textarea:focus {
    border-color: #000;
    background: #fff;
    outline: none;
}

/* --------------------------------------------------------------
   TIME SELECT (arrow for Safari / iOS)
-------------------------------------------------------------- */
#sbe_time {
    background: #fafafa url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='black' viewBox='0 0 24 24'>\
<path d='M7 10l5 5 5-5z'/>\
</svg>") no-repeat right 12px center;
    background-size: 18px;
    padding-right: 42px;
}

/* iOS anti-zoom fix */
@supports (-webkit-touch-callout: none) {
    .row input,
    .row select,
    .row textarea {
        font-size: 16px !important;
    }
}

/* --------------------------------------------------------------
   DATEPICKER
-------------------------------------------------------------- */
#ui-datepicker-div {
    z-index: 99999 !important;
    font-size: 15px;
    opacity: 0; /* anti-FoUC */
}
#ui-datepicker-div.ui-datepicker {
    opacity: 1;
}

.ui-datepicker {
    border: 1px solid #ccc;
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ui-datepicker td a {
    padding: 8px 0;
    text-align: center;
    border-radius: 4px;
}
.ui-datepicker td a:hover {
    background: #ececec;
}

.ui-datepicker .ui-state-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.special-open a {
    background: #d8ffe0 !important;
    border-radius: 4px;
    font-weight: 600;
    color: #000 !important;
}
.special-open a:hover {
    background: #c4f7d0 !important;
}

/* --------------------------------------------------------------
   BUTTON
-------------------------------------------------------------- */
.sbe-btn {
    width: 100%;
    padding: 17px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    display: block;
    transition: background 0.25s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.sbe-btn:hover {
    background: #d14841;
    transform: translateY(-2px);
}

.sbe-btn:active {
    transform: translateY(0);
    background: #b63a34;
}

.sbe-btn[disabled] {
    background: #555 !important; /* improved contrast */
    cursor: not-allowed !important;
    transform: none !important;
}

/* --------------------------------------------------------------
   MESSAGES
-------------------------------------------------------------- */
.sbe-success {
    background: #e6ffed;
    border-left: 4px solid #2b8a3e;
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 6px;
    font-size: 15px;
}

.sbe-error {
    background: #ffe6e6;
    border-left: 4px solid #c40000;
    padding: 14px;
    margin-bottom: 16px;
    color: #900;
    border-radius: 6px;
}
.sbe-error p {
    margin-bottom: 6px;
}

/* --------------------------------------------------------------
   MOBILE OPTIMISATIONS
-------------------------------------------------------------- */
@media (max-width: 480px) {
    .row input,
    .row select,
    .row textarea {
        font-size: 17px;
        padding: 15px;
    }

    #sbe_time {
        padding-right: 46px;
        background-size: 20px;
    }

    .suay-booking-form {
        padding: 12px;
    }

    .sbe-btn {
        padding: 20px;
        font-size: 21px;
    }
}
