/* ============================================================
   My Room Booking — Frontend Styles
   ============================================================ */

.mrb-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

/* Alert Messages */
.mrb-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.5;
}
.mrb-alert-success {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
}
.mrb-alert-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

/* Form Card */
.mrb-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Section Titles */
.mrb-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin: 24px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f3f4f6;
}
.mrb-section-title:first-child { margin-top: 0; }

/* Rows and Grids */
.mrb-row { margin-bottom: 0; }
.mrb-full  { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.mrb-half  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.mrb-thirds{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* Fields */
.mrb-field { display: flex; flex-direction: column; }

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.mrb-req { color: #ef4444; }
.mrb-optional { color: #9ca3af; font-weight: 400; font-size: 12px; }
.mrb-hint { font-size: 12px; color: #6b7280; margin-top: 4px; font-style: italic; }

/* Inputs */
.mrb-form input[type="text"],
.mrb-form input[type="email"],
.mrb-form input[type="tel"],
.mrb-form input[type="date"],
.mrb-form select,
.mrb-form textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.mrb-form input:focus,
.mrb-form select:focus,
.mrb-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.mrb-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 36px;
}
.mrb-form textarea { resize: vertical; min-height: 80px; }

/* Submit */
.mrb-submit-row { margin-top: 24px; }
.mrb-btn-submit {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.mrb-btn-submit:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
    transform: translateY(-1px);
}
.mrb-btn-submit:active { transform: translateY(0); }
.mrb-btn-icon { margin-right: 6px; }

/* Flatpickr input override */
.mrb-form .flatpickr-input { cursor: pointer; background: #fff !important; }

/* No rooms message */
.mrb-no-rooms {
    padding: 14px 18px;
    background: #fef9c3;
    border-left: 4px solid #eab308;
    color: #713f12;
    border-radius: 6px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .mrb-form { padding: 20px 16px; }
    .mrb-half, .mrb-thirds { grid-template-columns: 1fr; }
}
