/**
 * Simple Booking Form - Public Stylesheet
 * Version 2.5.0
 */

/* --- Main Form Wrapper --- */
.sb-booking-form-wrapper {
    max-width: 700px;
    margin: 40px auto;
    padding: 35px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

/* --- Form Header --- */
.sb-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.sb-form-header h2 {
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 600;
}

.sb-form-header p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

/* --- General Form Fields --- */
.sb-form-field {
    margin-bottom: 22px;
}

.sb-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.sb-form-field input[type="text"],
.sb-form-field input[type="email"],
.sb-form-field input[type="tel"],
.sb-form-field input[type="date"],
.sb-form-field select,
.sb-form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.sb-form-field input:focus,
.sb-form-field select:focus,
.sb-form-field textarea:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.15);
}

/* --- Phone Field --- */
.sb-phone-field-wrapper {
    position: relative;
}

.sb-phone-field-group {
    display: flex;
}

.sb-phone-field-group .sb-country-code-search {
    flex: 0 1 220px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}
.sb-phone-field-group .sb-phone-number-input {
    flex: 1 1 auto;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.sb-country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 1000;
    display: none;
    box-sizing: border-box;
}
.sb-country-dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
}
.sb-country-dropdown-item:hover {
    background-color: #f2f8ff;
}
.sb-country-dropdown-item.hidden {
    display: none;
}

/* --- Radio Cards --- */
.sb-license-category-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.sb-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.sb-radio-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    background: #fff;
}

.sb-radio-card:hover label {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.sb-radio-card .sb-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: #0073e6;
    transition: color 0.2s;
}
.sb-radio-card .sb-icon svg,
.sb-radio-card .sb-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sb-radio-card .sb-label-text { font-weight: 600; color: #333; font-size: 14px; }
.sb-radio-card input[type="radio"]:checked + label {
    border-color: #0073e6;
    background: linear-gradient(180deg, #f2f8ff 0%, #e6f2ff 100%);
    box-shadow: 0 4px 12px rgba(0,115,230,0.1);
    transform: translateY(-3px);
}
.sb-radio-card input[type="radio"]:focus + label {
     box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.25);
}

/* --- Category Description --- */
.sb-category-description {
    display: none;
    padding: 15px;
    margin-top: 15px;
    background-color: #f7f9fc;
    border-left: 4px solid #0073e6;
    border-radius: 4px;
    font-size: 14px;
    color: #444;
}
.sb-category-description p:last-child {
    margin-bottom: 0;
}

/* --- Remarks Field --- */
.sb-char-count {
    text-align: right;
    font-size: 12px;
    color: #777;
    margin-top: 6px;
}

/* --- Checkbox & Submit --- */
.sb-checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sb-checkbox-field label { margin-bottom: 0; font-weight: 500; }
.sb-checkbox-field input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; }

.sb-checkbox-field label a {
    text-decoration: underline;
    color: #0073e6;
    transition: color 0.2s;
}
.sb-checkbox-field label a:hover {
    color: #005bb7;
}

.sb-submit-button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #0073e6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
.sb-submit-button:hover { background-color: #005bb7; }
.sb-submit-button:active { transform: translateY(1px); }

.sb-form-footer {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-top: 30px;
}

/* --- Validation & Error Styling --- */
.sb-input-error {
    border-color: #d63638 !important;
}

.sb-field-error {
    color: #d63638;
    font-size: 13px;
    margin-top: 6px;
}

/* --- Confirmation Page --- */
.sb-confirmation-wrapper {
    max-width: 700px;
    margin: 40px auto;
    padding: 35px;
    background-color: #f7f9fc;
    border: 1px solid #e6f2ff;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sb-confirmation-wrapper h3 {
    text-align: center;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 600;
}

.sb-confirmation-table {
    width: 100%;
    border-collapse: collapse;
}

.sb-confirmation-table th,
.sb-confirmation-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e6e9f0;
}

.sb-confirmation-table th {
    text-align: left;
    font-weight: 600;
    color: #333;
    width: 35%;
}

.sb-confirmation-table td {
    text-align: left;
    color: #555;
}

.sb-confirmation-table tr:last-child th,
.sb-confirmation-table tr:last-child td {
    border-bottom: none;
}

