/* ============================================================
   RB Atelier Account UI — rb-account.css  v2.1
   Theme: #3c0808 (deep maroon) + White
   FIX: Only hide WC default greeting text, not form fields
   ============================================================ */

:root {
    --rb:       #3c0808;
    --rb2:      #6b1010;
    --rb-light: #fdf0f0;
    --rb-border:#f0e8e8;
    --white:    #ffffff;
    --text:     #1a1a1a;
    --muted:    #999;
    --radius:   10px;
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT — Hide sidebar, full width content
   ══════════════════════════════════════════════════════════════ */

/* Hide WC left sidebar on ALL account pages */
.woocommerce-MyAccount-navigation {
    display: none !important;
}

/* Full width content area */
.woocommerce-MyAccount-content {
    float:   none  !important;
    width:   100%  !important;
    margin:  0     !important;
    padding: 0     !important;
}

/* ── ONLY hide WC default greeting paragraph ──
   Target specifically: direct child <p> of content
   that contains the "From your account..." text.
   Do NOT hide <p> inside forms or measurement grids. ── */
.woocommerce-MyAccount-content > p.woocommerce-dashboard-description,
.woocommerce-account .woocommerce > p:first-of-type {
    display: none !important;
}

/* ══════════════════════════════════════════════════════════════
   MY ACCOUNT DASHBOARD UI
   ══════════════════════════════════════════════════════════════ */

.rb-account-ui {
    font-family: 'Segoe UI', sans-serif;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 0 30px;
}

/* ── Profile Header ── */
.rb-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--rb) 0%, var(--rb2) 100%);
    border-radius: var(--radius);
    padding: 24px 20px;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.rb-profile-header::before {
    content: '';
    position: absolute; top: -40px; right: -40px;
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.rb-avatar {
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--white); color: var(--rb);
    font-size: 18px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border: 2px solid rgba(255,255,255,0.3);
}
.rb-profile-info { flex: 1; }
.rb-profile-info h2 { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: #fff; }
.rb-profile-info p  { font-size: 12px; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.6; }
.rb-edit-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff; font-size: 11px; font-weight: 600;
    padding: 6px 12px; border-radius: 20px;
    text-decoration: none; white-space: nowrap;
    align-self: flex-start;
    transition: background 0.2s;
}
.rb-edit-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ── Quick Actions ── */
.rb-quick-actions {
    display: grid; grid-template-columns: repeat(4,1fr);
    background: var(--white);
    border: 1px solid var(--rb-border); border-radius: var(--radius);
    overflow: hidden; margin-bottom: 16px;
}
.rb-qa {
    display: flex; flex-direction: column; align-items: center;
    padding: 16px 6px 14px; text-decoration: none;
    border-right: 1px solid var(--rb-border);
    transition: background 0.15s;
}
.rb-qa:last-child { border-right: none; }
.rb-qa:hover { background: #fdf6f6; }
.rb-qa-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--rb-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px; transition: transform 0.2s;
}
.rb-qa:hover .rb-qa-icon { transform: scale(1.08); }
.rb-qa-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--rb); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rb-qa span { font-size: 10px; font-weight: 700; color: var(--rb); text-align: center; line-height: 1.3; }

/* ── Menu List ── */
.rb-menu-list {
    background: var(--white);
    border: 1px solid var(--rb-border); border-radius: var(--radius);
    overflow: hidden; margin-bottom: 14px;
}
.rb-menu-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-bottom: 1px solid #faf4f4;
    text-decoration: none; color: var(--text);
    transition: background 0.15s;
}
.rb-menu-item:last-child { border-bottom: none; }
.rb-menu-item:hover { background: #fdf6f6; }
.rb-mi-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--rb-light);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rb-mi-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--rb); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rb-mi-text { flex: 1; }
.rb-mi-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.rb-mi-text small  { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.rb-mi-arrow { color: #ddd; font-size: 20px; font-weight: 300; }
.rb-badge { background: var(--rb); color: #fff; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Logout ── */
.rb-logout-wrap { margin-top: 8px; }
.rb-logout-btn {
    display: block; width: 100%; padding: 13px;
    border: 2px solid var(--rb); background: transparent; color: var(--rb);
    font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    border-radius: 8px; text-align: center; text-decoration: none;
    transition: all 0.2s;
}
.rb-logout-btn:hover { background: var(--rb); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   ADD NEW SIZE — TOP BAR
   ══════════════════════════════════════════════════════════════ */
.rb-form-topbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

/* Book Appointment — solid maroon */
.rb-appt-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--rb);
    color: #fff !important;
    font-size: 13px; font-weight: 700;
    padding: 11px 10px; border-radius: 6px;
    border: 2px solid var(--rb);
    cursor: pointer; letter-spacing: 0.02em;
    white-space: nowrap; width: 100%;
    transition: background 0.2s, transform 0.15s;
}
.rb-appt-btn:hover { background: var(--rb2); border-color: var(--rb2); transform: translateY(-1px); }

/* Help — outlined maroon */
.rb-help-link {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    color: var(--rb) !important;
    font-size: 13px; font-weight: 600;
    text-decoration: none !important;
    padding: 11px 10px;
    border: 2px solid var(--rb);
    border-radius: 6px;
    background: transparent;
    white-space: nowrap; width: 100%;
    transition: all 0.2s;
}
.rb-help-link:hover { background: var(--rb); color: #fff !important; }

/* Unit selector */
#rb-unit-select {
    width: 100%; padding: 9px 10px; margin-top: 4px;
    border: 1.5px solid var(--rb-border) !important;
    border-radius: 4px; font-size: 13px; cursor: pointer;
    background: #fff; color: var(--text);
}
#rb-unit-select:focus { border-color: var(--rb) !important; outline: none; box-shadow: 0 0 0 2px rgba(60,8,8,0.08); }

/* Info icon */
.rb-info-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--rb-light); font-size: 12px;
    cursor: pointer; margin-left: 6px; vertical-align: middle;
    border: 1px solid var(--rb-border);
    transition: background 0.2s, transform 0.15s;
}
.rb-info-icon:hover { background: var(--rb); transform: scale(1.15); }

/* Measure guide popup */
#rb-measure-popup {
    position: fixed; inset: 0; z-index: 999999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.rb-measure-popup-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: -1;
}
.rb-measure-popup-inner {
    background: #fff; border-radius: 10px; padding: 28px 24px 22px;
    max-width: 400px; width: 100%; position: relative;
    box-shadow: 0 16px 48px rgba(60,8,8,0.18);
    animation: rb-in 0.22s ease;
}
@keyframes rb-in { from { transform: scale(0.93) translateY(16px); opacity:0; } to { transform:scale(1) translateY(0); opacity:1; } }
.rb-popup-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 22px; color: #aaa; cursor: pointer;
}
.rb-popup-close:hover { color: var(--rb); }
#rb-popup-title { font-size: 16px; font-weight: 700; color: var(--rb); margin: 0 0 14px; }
#rb-popup-img { width: 100%; border-radius: 8px; margin-bottom: 12px; border: 1px solid var(--rb-border); }
#rb-popup-tip { font-size: 13px; color: #555; line-height: 1.6; margin: 0; padding: 10px 12px; background: #fdf8f8; border-left: 3px solid var(--rb); border-radius: 4px; }

/* ══════════════════════════════════════════════════════════════
   BOOK APPOINTMENT VIP POPUP
   ══════════════════════════════════════════════════════════════ */

#rb-appt-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65); z-index: 999997;
    backdrop-filter: blur(3px);
}
#rb-appt-popup {
    position: fixed; inset: 0; z-index: 999998;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; overflow-y: auto;
}
.rb-appt-inner {
    background: #fff; border-radius: 16px;
    width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
    box-shadow: 0 24px 64px rgba(60,8,8,0.25);
    animation: rb-in 0.25s ease; position: relative;
}
.rb-appt-inner::-webkit-scrollbar { width: 4px; }
.rb-appt-inner::-webkit-scrollbar-thumb { background: var(--rb-border); border-radius: 4px; }

/* Header */
.rb-appt-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    background: linear-gradient(135deg, var(--rb) 0%, var(--rb2) 100%);
    padding: 24px 22px 20px; border-radius: 16px 16px 0 0; color: #fff;
}
.rb-vip-tag {
    display: inline-block;
    background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
    font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
    letter-spacing: 0.06em; margin-bottom: 8px; color: #fff;
}
.rb-appt-head h2 { font-size: 20px; font-weight: 800; margin: 0 0 4px; color: #fff; }
.rb-appt-head p  { font-size: 12px; color: rgba(255,255,255,0.7); margin: 0; }
.rb-appt-close {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
    color: #fff; font-size: 20px; width: 34px; height: 34px;
    border-radius: 50%; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.rb-appt-close:hover { background: rgba(255,255,255,0.3); }

/* Steps bar */
.rb-steps-bar {
    display: flex; align-items: center; justify-content: center;
    padding: 18px 22px 14px; background: #fdf8f8;
    border-bottom: 1px solid var(--rb-border);
}
.rb-step-dot { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 60px; }
.rb-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: #e8e0e0; color: var(--muted);
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.rb-step-dot.active   .rb-step-num { background: var(--rb); color: #fff; }
.rb-step-dot.complete .rb-step-num { background: #4caf50; color: #fff; }
.rb-step-lbl { font-size: 10px; font-weight: 600; color: var(--muted); }
.rb-step-dot.active   .rb-step-lbl { color: var(--rb); }
.rb-step-dot.complete .rb-step-lbl { color: #4caf50; }
.rb-step-line { flex: 1; height: 2px; background: #e8e0e0; margin: 0 4px; margin-bottom: 16px; transition: background 0.3s; }
.rb-step-line.active { background: var(--rb); }

/* Panels */
.rb-panel { display: none; padding: 22px; }
.rb-panel.active { display: block; }

/* Fields */
.rb-field { margin-bottom: 16px; }
.rb-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #333; }
.req { color: #c0392b; font-style: normal; }
.rb-field input[type="text"],
.rb-field input[type="tel"],
.rb-field input[type="email"],
.rb-field input[type="date"],
.rb-field textarea {
    width: 100%; padding: 10px 12px;
    border: 1.5px solid #ddd; border-radius: 6px;
    font-size: 14px; color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff; box-sizing: border-box;
}
.rb-field input:focus,
.rb-field textarea:focus {
    border-color: var(--rb); outline: none;
    box-shadow: 0 0 0 3px rgba(60,8,8,0.07);
}
.rb-field textarea { resize: vertical; min-height: 80px; }

/* Phone row */
.rb-phone-row { display: flex; gap: 8px; }
.rb-code {
    display: flex; align-items: center;
    padding: 10px 12px; background: #f5f5f5;
    border: 1.5px solid #ddd; border-radius: 6px;
    font-size: 13px; font-weight: 600; white-space: nowrap; color: #333;
}
.rb-phone-row input { flex: 1; }

/* Two column */
.rb-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Pincode */
.rb-pincode-row { display: flex; align-items: center; gap: 8px; }
.rb-pincode-row input { flex: 1; }
.rb-pin-area { display: block; margin-top: 5px; font-size: 12px; color: #4caf50; font-weight: 600; min-height: 16px; }

/* GPS button */
.rb-gps-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px;
    background: var(--rb-light); border: 1.5px dashed var(--rb);
    color: var(--rb); font-size: 13px; font-weight: 700;
    border-radius: 8px; cursor: pointer; margin-bottom: 14px;
    transition: all 0.2s;
}
.rb-gps-btn:hover { background: var(--rb); color: #fff; }
.rb-gps-status { font-size: 12px; color: var(--muted); text-align: center; margin: -8px 0 12px; min-height: 16px; }

/* Time slots */
.rb-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rb-slot { cursor: pointer; }
.rb-slot input[type="radio"] { display: none; }
.rb-slot-inner {
    display: flex; flex-direction: column; align-items: center;
    padding: 12px 8px; border: 1.5px solid #e8e0e0; border-radius: 8px;
    text-align: center; transition: all 0.2s;
}
.rb-slot:hover .rb-slot-inner { border-color: var(--rb); background: var(--rb-light); }
.rb-slot input:checked + .rb-slot-inner { border-color: var(--rb); background: var(--rb); color: #fff; }
.rb-slot input:checked + .rb-slot-inner strong,
.rb-slot input:checked + .rb-slot-inner small { color: #fff; }
.rb-slot-emoji { font-size: 18px; margin-bottom: 4px; }
.rb-slot-inner strong { display: block; font-size: 12px; font-weight: 700; color: #333; }
.rb-slot-inner small  { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }

/* Summary */
.rb-summary { background: #fdf8f8; border: 1px solid var(--rb-border); border-radius: 8px; padding: 14px 16px; margin-top: 16px; }
.rb-summary h4 { font-size: 13px; font-weight: 700; color: var(--rb); margin: 0 0 10px; }
.rb-summary-row { display: flex; gap: 8px; font-size: 12px; margin-bottom: 5px; }
.rb-summary-row strong { color: #555; min-width: 80px; flex-shrink: 0; }
.rb-summary-row span   { color: var(--text); }

/* Nav buttons */
.rb-nav-row { display: flex; gap: 10px; margin-top: 20px; }
.rb-back-btn {
    flex: 1; padding: 12px;
    border: 1.5px solid var(--rb-border); background: #fff;
    color: #555; font-size: 13px; font-weight: 600;
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.rb-back-btn:hover { border-color: var(--rb); color: var(--rb); }
.rb-next-btn, .rb-confirm-btn {
    flex: 2; padding: 13px; background: var(--rb); color: #fff;
    border: none; font-size: 13px; font-weight: 700;
    border-radius: 8px; cursor: pointer; letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.15s;
}
.rb-next-btn:hover,
.rb-confirm-btn:hover { background: var(--rb2); transform: translateY(-1px); }
.rb-full-btn { width: 100%; display: block; margin-top: 18px; flex: none; }

/* Success screen */
.rb-success-body { display: flex; flex-direction: column; align-items: center; padding: 40px 24px 32px; text-align: center; }
.rb-success-icon { font-size: 56px; margin-bottom: 16px; }
.rb-success-body h3 { font-size: 22px; font-weight: 800; color: var(--rb); margin: 0 0 8px; }
.rb-success-body p  { font-size: 14px; color: #555; margin: 0 0 20px; }
#rb-success-details { background: var(--rb-light); border-radius: 8px; padding: 14px 16px; width: 100%; text-align: left; margin-bottom: 20px; }
.rb-done-btn { padding: 13px 40px; background: var(--rb); color: #fff; border: none; font-size: 14px; font-weight: 700; border-radius: 8px; cursor: pointer; }
.rb-done-btn:hover { background: var(--rb2); }

/* ── Responsive ── */
@media (max-width: 600px) {
    .rb-quick-actions { grid-template-columns: repeat(2,1fr); }
    .rb-qa:nth-child(2) { border-right: none; }
    .rb-qa:nth-child(1), .rb-qa:nth-child(2) { border-bottom: 1px solid var(--rb-border); }
    .rb-two-col  { grid-template-columns: 1fr; }
    .rb-slots    { grid-template-columns: 1fr; }
    .rb-form-topbar { flex-wrap: wrap; }
    .rb-appt-btn, .rb-help-link { width: 100%; justify-content: center; }
    .rb-appt-inner { border-radius: 12px; }
}