/* ============================================================
   Blackberry Reservation — Front-end Styles
   ============================================================ */

.bbr-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 40px;
    background: #f5f5f7;
    border-radius: 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

/* ── Form layout ────────────────────────────────────────── */
.bbr-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bbr-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bbr-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.bbr-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbr-field-full {
    width: 100%;
}

/* ── Labels ─────────────────────────────────────────────── */
.bbr-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d2d2d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbr-icon {
    font-size: 15px;
    color: #c0396b;
}

.bbr-optional {
    font-weight: 400;
    color: #777;
    font-size: 13px;
}

/* ── Inputs ─────────────────────────────────────────────── */
.bbr-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    color: #2d2d2d;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    appearance: auto;
    -webkit-appearance: auto;
    font-family: inherit;
}

.bbr-input::placeholder {
    color: #b0b0b0;
}

.bbr-input:focus {
    border-color: #c0396b;
    box-shadow: 0 0 0 3px rgba(192, 57, 107, 0.12);
}

.bbr-input.bbr-error-field {
    border-color: #dc3232;
}

select.bbr-input {
    cursor: pointer;
    color: #2d2d2d;
}

select.bbr-input option[value=""] {
    color: #b0b0b0;
}

.bbr-textarea {
    resize: vertical;
    min-height: 110px;
}

/* ── Submit button ──────────────────────────────────────── */
.bbr-btn-submit {
    width: 100%;
    padding: 17px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #d4547a 0%, #c0396b 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.bbr-btn-submit:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.bbr-btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.bbr-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Spinner ────────────────────────────────────────────── */
.bbr-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bbr-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes bbr-spin {
    to { transform: rotate(360deg); }
}

/* ── Error banner ───────────────────────────────────────── */
.bbr-error {
    background: #fff0f0;
    border: 1px solid #ffc0c0;
    border-radius: 10px;
    padding: 12px 16px;
    color: #a00;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Note text ──────────────────────────────────────────── */
.bbr-note {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin: 2px 0 0;
    line-height: 1.6;
}

.bbr-note a {
    color: #c0396b;
    text-decoration: none;
}

.bbr-note a:hover {
    text-decoration: underline;
}

/* ── Success state ──────────────────────────────────────── */
.bbr-success {
    text-align: center;
    padding: 40px 20px;
}

.bbr-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4547a, #c0396b);
    color: #fff;
    font-size: 32px;
    line-height: 64px;
    margin: 0 auto 20px;
}

.bbr-success h3 {
    font-size: 22px;
    color: #2d2d2d;
    margin: 0 0 10px;
}

.bbr-success p {
    color: #555;
    font-size: 15px;
    margin: 0 0 24px;
}

.bbr-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid #c0396b;
    background: transparent;
    color: #c0396b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

.bbr-btn:hover {
    background: #c0396b;
    color: #fff;
}

/* ── Utility ────────────────────────────────────────────── */
.bbr-hidden {
    display: none !important;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .bbr-wrap {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .bbr-row,
    .bbr-row-3 {
        grid-template-columns: 1fr;
    }
}
