/* =========================================================
   Hotel Booking Plugin — Main Stylesheet
   ========================================================= */

/* Wrap */
.hb-form-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 36px 40px 40px;
    background: #ffffff;
    border: 1px solid #e8e4de;
    border-radius: 12px;
    font-family: inherit;
    box-sizing: border-box;
}

.hb-form-title {
    margin: 0 0 28px;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

/* Field groups */
.hb-field-group {
    margin-bottom: 22px;
}

.hb-label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
}

/* Select */
.hb-select {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fafaf8;
    border: 1px solid #d4cfc8;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.hb-select:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.12);
}

.hb-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Radio group */
.hb-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hb-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fafaf8;
    border: 1px solid #d4cfc8;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}

.hb-radio-label:hover {
    border-color: #8b7355;
    background: #f5f1eb;
}

.hb-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hb-radio-custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #c4bfb8;
    border-radius: 50%;
    margin-top: 2px;
    transition: border-color 0.15s;
    position: relative;
}

.hb-radio-label input[type="radio"]:checked ~ .hb-radio-custom {
    border-color: #8b7355;
}

.hb-radio-label input[type="radio"]:checked ~ .hb-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #8b7355;
    border-radius: 50%;
}

.hb-radio-label:has(input:checked) {
    border-color: #8b7355;
    background: #f5f1eb;
}

.hb-radio-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hb-radio-text strong {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.hb-radio-text small {
    font-size: 13px;
    color: #7a7570;
}

/* Hint + Error */
.hb-hint {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #7a7570;
}

.hb-error {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #c0392b;
    min-height: 18px;
}

/* Submit button */
.hb-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    background: #8b7355;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.1px;
}

.hb-submit-btn:hover {
    background: #7a6448;
}

.hb-submit-btn:active {
    transform: scale(0.99);
}

.hb-btn-arrow {
    font-size: 18px;
    transition: transform 0.15s;
}

.hb-submit-btn:hover .hb-btn-arrow {
    transform: translateX(3px);
}

/* Form note */
.hb-form-note {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: #a09890;
}

/* Calendar placeholder (Phase 3 temp) */
.hb-calendar-placeholder {
    padding: 24px;
    background: #fafaf8;
    border: 1px dashed #c4bfb8;
    border-radius: 8px;
    font-size: 15px;
    color: #5a5550;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 560px) {
    .hb-form-wrap {
        padding: 24px 20px 28px;
        border-radius: 8px;
    }
}

/* ── Preset room badge (room-specific form) ───────────── */
.hb-preset-room {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: #f5f1eb;
    border: 1px solid #ddd5c8;
    border-radius: 8px;
    font-size: 15px;
}

.hb-preset-room__icon {
    font-size: 18px;
    line-height: 1;
}

.hb-preset-room__label {
    font-weight: 500;
    color: #1a1a1a;
}

.hb-preset-room__guests {
    margin-left: auto;
    font-size: 13px;
    color: #7a7570;
}
