/**
 * KC Booking Form Styles
 */

/* Container */
.kc-booking-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Shared utility classes for forms */
.kc-text-black { color: #000; }
.kc-underline { text-decoration: underline; }
.kc-text-xs { font-size: 12px; }
.kc-text-sm { font-size: 14px; }

/* Header */
.kc-booking-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.kc-booking-form-title {
    color: #06175c;
    font-size: 28px;
    margin-bottom: 10px;
}

.kc-booking-form-subtitle {
    color: #666;
    font-size: 16px;
}

/* Form Sections */
.kc-booking-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.kc-booking-form-section:last-child {
    border-bottom: none;
}

.kc-booking-form-section-title {
    color: #06175c;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Form Rows */
.kc-booking-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 20px;
}

.kc-booking-form-field {
    flex: 1;
    min-width: 250px;
    padding: 0 10px;
    margin-bottom: 15px;
}

/* Form Fields */
.kc-booking-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.kc-booking-form input[type="text"],
.kc-booking-form input[type="email"],
.kc-booking-form input[type="tel"],
.kc-booking-form select,
.kc-booking-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.kc-booking-form input[type="text"]:focus,
.kc-booking-form input[type="email"]:focus,
.kc-booking-form input[type="tel"]:focus,
.kc-booking-form select:focus,
.kc-booking-form textarea:focus {
    border-color: #06175c;
    box-shadow: 0 0 0 2px rgba(6, 23, 92, 0.2);
    outline: none;
}

.kc-booking-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkboxes */
.kc-booking-form-extras,
.kc-booking-form-pets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.kc-booking-form-checkbox {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.kc-booking-form-checkbox label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    cursor: pointer;
}

.kc-booking-form-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.kc-booking-form-checkbox-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Required Fields */
.kc-booking-form .required {
    color: #e74c3c;
}

/* Field Errors */
.kc-booking-form-field-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 600;
}

.kc-booking-form-field-invalid {
    border-color: #e74c3c !important;
}

/* Submit Button */
.kc-booking-form-submit {
    text-align: center;
    margin-top: 30px;
}

.kc-booking-form-submit-button {
    background-color: #06175c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.kc-booking-form-submit-button:hover {
    background-color: #0a2380;
}

/* Form Messages */
.kc-booking-form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.kc-booking-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.kc-booking-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Hidden honeypot field (shared across forms) */
.kc-booking-form #honeypot,
.kc-booking-form .kc-honeypot {
    position: absolute !important;
    left: -2000px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .kc-booking-form-container {
        padding: 20px;
    }
    
    .kc-booking-form-row {
        flex-direction: column;
    }
    
    .kc-booking-form-field {
        min-width: 100%;
    }
    
    .kc-booking-form-extras,
    .kc-booking-form-pets {
        grid-template-columns: 1fr;
    }
}


/* Inline radios and checkboxes (shared across forms) */
.kc-booking-form .tjs-radio.custom-control,
.kc-booking-form .tjs-checkbox.custom-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kc-booking-form .tjs-radio.custom-control-inline,
.kc-booking-form .tjs-checkbox.custom-control-inline {
    display: inline-flex;
}

.kc-booking-form .tjs-radio__input,
.kc-booking-form .tjs-checkbox__input {
    margin: 0 8px 0 0;
}

.kc-booking-form .tjs-radio__label,
.kc-booking-form .tjs-checkbox__label {
    display: inline;
    margin: 0;
}
