/* ============================================================
   Coastal Canines — Manual Booking Form  (mobile-first)
   ============================================================ */

/* ── Wrapper ──────────────────────────────────────────────── */
.ccb-mb-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #2d3748;
    box-sizing: border-box;
}

.ccb-mb-wrap *,
.ccb-mb-wrap *::before,
.ccb-mb-wrap *::after {
    box-sizing: inherit;
}

/* ── Password Gate ────────────────────────────────────────── */
.ccb-mb-gate {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.ccb-mb-gate-inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    text-align: center;
}

.ccb-mb-gate-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
}

.ccb-mb-gate-sub {
    margin: 0 0 24px;
    font-size: 14px;
    color: #718096;
}

/* ── Form Wrap ────────────────────────────────────────────── */
.ccb-mb-form-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

/* ── Sections ─────────────────────────────────────────────── */
.ccb-mb-section {
    border: none;
    margin: 0 0 24px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ccb-mb-section-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #718096;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

/* ── Row / Grid ───────────────────────────────────────────── */
.ccb-mb-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 560px) {
    .ccb-mb-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .ccb-mb-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fields that span the full row width */
.ccb-mb-field--full {
    grid-column: 1 / -1;
}

/* ── Fields ───────────────────────────────────────────────── */
.ccb-mb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ccb-mb-field label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}

.ccb-mb-req {
    color: #e53e3e;
    margin-left: 2px;
}

.ccb-mb-field input[type="text"],
.ccb-mb-field input[type="email"],
.ccb-mb-field input[type="tel"],
.ccb-mb-field input[type="date"],
.ccb-mb-field input[type="password"],
.ccb-mb-field select,
.ccb-mb-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    background: #fff;
    color: #2d3748;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.ccb-mb-field input:focus,
.ccb-mb-field select:focus,
.ccb-mb-field textarea:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66,153,225,.25);
}

.ccb-mb-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23718096'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 36px;
}

.ccb-mb-field select:disabled {
    background-color: #edf2f7;
    color: #a0aec0;
    cursor: not-allowed;
}

.ccb-mb-field textarea {
    resize: vertical;
    min-height: 90px;
}

/* Validation error state */
.ccb-mb-field.has-error input,
.ccb-mb-field.has-error select,
.ccb-mb-field.has-error textarea {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229,62,62,.2);
}

.ccb-mb-field-error {
    font-size: 12px;
    color: #e53e3e;
    display: none;
}

.ccb-mb-field.has-error .ccb-mb-field-error {
    display: block;
}

/* Time spinner */
.ccb-mb-time-loading {
    font-size: 13px;
    color: #718096;
    font-style: italic;
}

/* ── Notices ──────────────────────────────────────────────── */
.ccb-mb-msg {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    margin-top: 12px;
}

.ccb-mb-msg--error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.ccb-mb-msg--success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

/* ── Buttons ──────────────────────────────────────────────── */
.ccb-mb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, transform .1s;
    text-decoration: none;
    gap: 8px;
}

.ccb-mb-btn--primary {
    background: #3182ce;
    color: #fff;
}

.ccb-mb-btn--primary:hover:not(:disabled) {
    background: #2b6cb0;
}

.ccb-mb-btn:disabled,
.ccb-mb-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.ccb-mb-btn--lg {
    padding: 14px 36px;
    font-size: 16px;
    width: 100%;
    margin-top: 4px;
}

@media (min-width: 480px) {
    .ccb-mb-btn--lg {
        width: auto;
    }
}

/* ── Submit row ───────────────────────────────────────────── */
.ccb-mb-submit-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.ccb-mb-spinner {
    font-size: 14px;
    color: #718096;
    font-style: italic;
}

/* ── Success confirmation card ────────────────────────────── */
.ccb-mb-success-card {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    margin-top: 16px;
}

.ccb-mb-success-card h3 {
    color: #276749;
    margin: 0 0 12px;
    font-size: 20px;
}

.ccb-mb-success-card p {
    margin: 0 0 8px;
    color: #2d3748;
}

.ccb-mb-success-card strong {
    font-size: 18px;
    color: #276749;
}

/* ── Mobile tweaks ────────────────────────────────────────── */
@media (max-width: 480px) {
    .ccb-mb-section {
        padding: 14px 12px;
    }

    .ccb-mb-gate-inner {
        padding: 28px 18px;
    }

    .ccb-mb-form-title {
        font-size: 20px;
    }
}
