/* Photo Booking Plugin — matching warm beige design */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --pb-bg: #f5f0eb;
    --pb-white: #fff;
    --pb-border: #e8e0d8;
    --pb-text: #1a1108;
    --pb-muted: #9a8f85;
    --pb-taken: #d5cfc9;
    --pb-success: #22a06b;
    --pb-radius: 12px;
    --pb-radius-sm: 8px;
    --pb-shadow: 0 2px 12px rgba(90,60,30,.08);
    --pb-shadow-hover: 0 6px 24px rgba(90,60,30,.14);
    --pb-transition: .18s cubic-bezier(.4,0,.2,1);
}

#photo-booking-app {
    font-family: 'DM Sans', sans-serif;
    background: var(--pb-bg);
    border-radius: 20px;
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 24px 40px;
    position: relative;
    overflow: hidden;
}

/* Progress */
.pb-progress {
    margin-bottom: 28px;
}
.pb-progress-label {
    font-size: 13px;
    color: var(--pb-muted);
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.pb-progress-track {
    height: 3px;
    background: var(--pb-border);
    border-radius: 99px;
    overflow: hidden;
}
.pb-progress-bar {
    height: 100%;
    background: var(--pb-primary);
    border-radius: 99px;
    transition: width .4s cubic-bezier(.4,0,.2,1);
    width: 14.28%;
}

/* Steps */
.pb-step { display: none; animation: pb-fadein .25s ease; }
.pb-step.active { display: block; }
@keyframes pb-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pb-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 5vw, 34px);
    font-weight: 500;
    color: var(--pb-text);
    margin: 0 0 6px;
    line-height: 1.2;
}
.pb-subheading {
    font-size: 15px;
    color: var(--pb-muted);
    margin: 0 0 24px;
    line-height: 1.5;
}

/* --- Session type grid (3 cols) --- */
.pb-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}
@media (max-width: 500px) { .pb-grid-3 { grid-template-columns: repeat(2, 1fr); } }

.pb-card {
    background: var(--pb-white);
    border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 18px 14px 16px;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--pb-transition), box-shadow var(--pb-transition), transform var(--pb-transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    box-shadow: var(--pb-shadow);
}
.pb-card:hover { border-color: var(--pb-primary); box-shadow: var(--pb-shadow-hover); transform: translateY(-2px); }
.pb-card.selected { border-color: var(--pb-primary); background: #fef8f5; box-shadow: 0 0 0 3px rgba(184,92,56,.12), var(--pb-shadow-hover); }

.pb-card-icon {
    font-size: 20px;
    margin-bottom: 4px;
    display: block;
    color: var(--pb-primary);
}
/* Icon map via pseudo */
.pb-icon-heart::before { content: '♡'; }
.pb-icon-ring::before { content: '💍'; font-size: 16px; }
.pb-icon-flame::before { content: '🕯'; }
.pb-icon-users::before { content: '👥'; font-size: 16px; }
.pb-icon-person::before { content: '🪞'; font-size: 16px; }
.pb-icon-paper-plane::before { content: '✈'; }

.pb-card-label { font-size: 14px; font-weight: 600; color: var(--pb-text); }
.pb-card-desc { font-size: 12px; color: var(--pb-muted); line-height: 1.4; }
.pb-badge {
    position: absolute; top: 8px; right: 8px;
    background: var(--pb-text); color: var(--pb-bg);
    font-size: 9px; font-weight: 700; letter-spacing: .5px;
    padding: 2px 6px; border-radius: 4px;
}

/* --- Duration list --- */
.pb-list { display: flex; flex-direction: column; gap: 8px; }

.pb-list-item {
    background: var(--pb-white);
    border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    transition: border-color var(--pb-transition), box-shadow var(--pb-transition);
    box-shadow: var(--pb-shadow);
}
.pb-list-item:hover { border-color: var(--pb-primary); box-shadow: var(--pb-shadow-hover); }
.pb-list-item.selected { border-color: var(--pb-primary); background: #fef8f5; }

.pb-list-left { display: flex; flex-direction: column; gap: 2px; }
.pb-list-label { font-size: 15px; font-weight: 600; color: var(--pb-text); display: flex; align-items: center; gap: 8px; }
.pb-list-desc  { font-size: 13px; color: var(--pb-muted); }
.pb-list-price { font-size: 17px; font-weight: 700; color: var(--pb-primary); white-space: nowrap; }
.pb-badge-inline {
    background: var(--pb-primary); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: .4px;
    padding: 2px 7px; border-radius: 4px;
}

/* --- Calendar --- */
.pb-calendar { margin-bottom: 8px; }
.pb-cal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; font-weight: 600; color: var(--pb-text); font-size: 15px;
}
.pb-cal-nav { background: none; border: 1.5px solid var(--pb-border); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 14px; color: var(--pb-text); display: flex; align-items: center; justify-content: center; }
.pb-cal-nav:hover { background: var(--pb-border); }
.pb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pb-cal-dow { text-align: center; font-size: 11px; font-weight: 600; color: var(--pb-muted); padding: 4px 0 8px; letter-spacing: .5px; }
.pb-cal-day {
    background: var(--pb-white); border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius-sm); padding: 10px 4px; text-align: center;
    font-size: 14px; font-weight: 500; cursor: pointer; color: var(--pb-text);
    transition: border-color var(--pb-transition), background var(--pb-transition);
    line-height: 1;
}
.pb-cal-day:hover:not(.disabled) { border-color: var(--pb-primary); }
.pb-cal-day.selected { background: var(--pb-primary); color: #fff; border-color: var(--pb-primary); }
.pb-cal-day.disabled { background: var(--pb-bg); color: var(--pb-taken); cursor: default; border-color: transparent; }
.pb-cal-day.empty { border: none; background: none; cursor: default; }
.pb-cal-day .pb-cal-dow-short { display: block; font-size: 9px; color: inherit; opacity: .7; margin-bottom: 2px; }

/* --- Time grid --- */
.pb-time-card {
    background: var(--pb-white); border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius); padding: 18px 10px;
    text-align: center; cursor: pointer;
    transition: border-color var(--pb-transition), box-shadow var(--pb-transition);
    display: flex; flex-direction: column; gap: 4px; align-items: center;
    box-shadow: var(--pb-shadow);
}
.pb-time-card:hover:not(.taken) { border-color: var(--pb-primary); box-shadow: var(--pb-shadow-hover); }
.pb-time-card.selected { border-color: var(--pb-primary); background: #fef8f5; }
.pb-time-card.taken { opacity: .45; cursor: not-allowed; background: var(--pb-bg); }
.pb-time-val { font-size: 20px; font-weight: 700; color: var(--pb-text); font-variant-numeric: tabular-nums; }
.pb-time-label { font-size: 12px; color: var(--pb-muted); }
.pb-time-card.selected .pb-time-val { color: var(--pb-primary); }

/* --- Location list --- */
.pb-location-list { display: flex; flex-direction: column; gap: 8px; }
.pb-location-item {
    background: var(--pb-white); border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius); padding: 16px 20px;
    display: flex; align-items: center; gap: 14px;
    cursor: pointer; text-align: left;
    transition: border-color var(--pb-transition), box-shadow var(--pb-transition);
    box-shadow: var(--pb-shadow);
}
.pb-location-item:hover { border-color: var(--pb-primary); box-shadow: var(--pb-shadow-hover); }
.pb-location-item.selected { border-color: var(--pb-primary); background: #fef8f5; }
.pb-location-item.disabled { opacity: .45; cursor: not-allowed; }
.pb-loc-pin { font-size: 18px; flex-shrink: 0; }
.pb-loc-text { display: flex; flex-direction: column; gap: 2px; }
.pb-loc-label { font-size: 15px; font-weight: 600; color: var(--pb-text); }
.pb-loc-desc  { font-size: 13px; color: var(--pb-muted); }

/* --- Form --- */
.pb-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.pb-field { display: flex; flex-direction: column; gap: 6px; }
.pb-label { font-size: 13px; font-weight: 600; color: var(--pb-text); }
.pb-required { color: var(--pb-primary); }
.pb-optional { font-weight: 400; color: var(--pb-muted); }
.pb-input, .pb-textarea {
    border: 1.5px solid var(--pb-border); border-radius: var(--pb-radius-sm);
    padding: 12px 14px; font-size: 15px; font-family: inherit;
    background: var(--pb-white); color: var(--pb-text); outline: none;
    transition: border-color var(--pb-transition);
    width: 100%; box-sizing: border-box;
}
.pb-input:focus, .pb-textarea:focus { border-color: var(--pb-primary); }
.pb-textarea { resize: vertical; }

/* Add-ons */
.pb-addons-section { border-top: 1px solid var(--pb-border); padding-top: 20px; }
.pb-addons-title { font-size: 15px; font-weight: 600; color: var(--pb-text); margin: 0 0 12px; }
.pb-addon-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--pb-white); border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius); padding: 14px 18px;
    margin-bottom: 8px; cursor: pointer;
    transition: border-color var(--pb-transition);
}
.pb-addon-item:hover { border-color: var(--pb-primary); }
.pb-addon-item:has(.pb-addon-check:checked) { border-color: var(--pb-primary); background: #fef8f5; }
.pb-addon-check { accent-color: var(--pb-primary); width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.pb-addon-left { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pb-addon-label { font-size: 14px; font-weight: 600; color: var(--pb-text); }
.pb-addon-desc  { font-size: 12px; color: var(--pb-muted); }
.pb-addon-price { font-size: 15px; font-weight: 700; color: var(--pb-primary); white-space: nowrap; }

/* --- Summary (step 7) --- */
.pb-summary-card {
    background: var(--pb-white); border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius); overflow: hidden; margin-bottom: 12px;
}
.pb-summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; border-bottom: 1px solid var(--pb-border);
    font-size: 14px;
}
.pb-summary-row:last-child { border-bottom: none; }
.pb-summary-key { color: var(--pb-muted); }
.pb-summary-val { font-weight: 600; color: var(--pb-text); text-align: right; max-width: 60%; }
.pb-total-row {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--pb-white); border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius); padding: 16px 20px; margin-bottom: 20px;
    font-size: 15px; font-weight: 600; color: var(--pb-text);
}
.pb-total-amount { font-size: 28px; font-weight: 700; color: var(--pb-primary); font-family: 'Playfair Display', serif; }

/* Payment options */
.pb-payment-options { margin-bottom: 16px; }
.pb-pay-title { font-size: 15px; font-weight: 600; color: var(--pb-text); margin: 0 0 12px; }
.pb-pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 460px) { .pb-pay-grid { grid-template-columns: 1fr; } }

.pb-pay-option {
    display: block; cursor: pointer;
    background: var(--pb-white); border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius); overflow: hidden;
    transition: border-color var(--pb-transition), box-shadow var(--pb-transition);
}
.pb-pay-option:has(.pb-pay-radio:checked) { border-color: var(--pb-primary); background: #fef8f5; box-shadow: 0 0 0 3px rgba(184,92,56,.1); }
.pb-pay-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pb-pay-inner { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.pb-pay-label { font-size: 14px; font-weight: 600; color: var(--pb-text); }
.pb-pay-desc  { font-size: 12px; color: var(--pb-muted); }
.pb-pay-amount { font-size: 22px; font-weight: 700; color: var(--pb-primary); margin-top: 4px; font-family: 'Playfair Display', serif; }
.pb-deposit-amt { color: var(--pb-primary); }

.pb-disclaimer {
    display: flex; gap: 10px; align-items: flex-start;
    background: #f0f7f4; border-radius: var(--pb-radius-sm);
    padding: 12px 16px; font-size: 13px; color: #3d7a5e; margin-bottom: 8px;
}

/* Error */
.pb-error { background: #fff1f0; border: 1px solid #fca5a5; border-radius: 8px; padding: 12px 16px; color: #b91c1c; font-size: 14px; margin-top: 12px; }

/* Navigation */
.pb-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }

.pb-btn-back {
    background: none; border: 1.5px solid var(--pb-border);
    border-radius: 99px; padding: 12px 22px;
    font-size: 14px; font-weight: 500; color: var(--pb-text); cursor: pointer;
    font-family: inherit; transition: border-color var(--pb-transition), background var(--pb-transition);
}
.pb-btn-back:hover { border-color: var(--pb-primary); background: var(--pb-white); }

.pb-btn-continue {
    background: var(--pb-primary); color: #fff;
    border: none; border-radius: 99px; padding: 14px 32px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    font-family: inherit;
    transition: background var(--pb-transition), transform var(--pb-transition), box-shadow var(--pb-transition);
    box-shadow: 0 4px 14px rgba(184,92,56,.35);
    margin-left: auto;
}
.pb-btn-continue:hover { background: #a34f2f; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184,92,56,.4); }
.pb-btn-continue:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Loading overlay */
.pb-loading {
    position: absolute; inset: 0;
    background: rgba(245,240,235,.9); border-radius: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    z-index: 100;
}
.pb-spinner {
    width: 40px; height: 40px; border: 3px solid var(--pb-border);
    border-top-color: var(--pb-primary); border-radius: 50%;
    animation: pb-spin .7s linear infinite;
}
@keyframes pb-spin { to { transform: rotate(360deg); } }
.pb-loading p { color: var(--pb-muted); font-size: 14px; margin: 0; }

/* Auto-advance animation */
.pb-step.pb-auto-enter {
    animation: pb-slide-in .28s cubic-bezier(.4,0,.2,1);
}
@keyframes pb-slide-in {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Selected state pulse on auto-advance items */
.pb-card.selected,
.pb-list-item.selected,
.pb-time-card.selected {
    animation: pb-select-pulse .25s ease;
}
@keyframes pb-select-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.025); }
    100% { transform: scale(1); }
}

/* Logged-in user banner on step 6 */
.pb-logged-in-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--pb-white);
    border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 14px 18px;
    margin-bottom: 20px;
}
.pb-lib-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pb-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pb-lib-text { flex: 1; min-width: 0; }
.pb-lib-name  { font-size: 14px; font-weight: 600; color: var(--pb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-lib-email { font-size: 12px; color: var(--pb-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-lib-switch {
    font-size: 12px;
    color: var(--pb-muted);
    text-decoration: none;
    border: 1px solid var(--pb-border);
    border-radius: 6px;
    padding: 4px 10px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--pb-transition), border-color var(--pb-transition);
}
.pb-lib-switch:hover { color: var(--pb-primary); border-color: var(--pb-primary); }

/* WhatsApp hint on step 7 */
.pb-whatsapp-hint {
    text-align: center;
    font-size: 13px;
    color: var(--pb-muted);
    margin-top: 10px;
}
.pb-whatsapp-hint a {
    color: var(--pb-primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.pb-whatsapp-hint a:hover { text-decoration: underline; }

/* People step */
.pb-people-fixed-badge {
    background: var(--pb-white);
    border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 20px 24px;
    font-size: 22px;
    font-weight: 700;
    color: var(--pb-primary);
    text-align: center;
    font-family: 'Georgia', serif;
    margin-bottom: 12px;
}
.pb-people-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--pb-white);
    border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 16px 20px;
    margin-bottom: 10px;
}
.pb-people-label { display: flex; align-items: center; gap: 14px; }
.pb-people-icon  { font-size: 24px; }
.pb-people-type  { font-size: 15px; font-weight: 600; color: var(--pb-text); }
.pb-people-hint  { font-size: 12px; color: var(--pb-muted); margin-top: 2px; }
.pb-counter      { display: flex; align-items: center; gap: 14px; }
.pb-counter-btn  {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid var(--pb-border); background: var(--pb-white);
    font-size: 20px; font-weight: 300; color: var(--pb-text);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: border-color var(--pb-transition), background var(--pb-transition);
    line-height: 1;
}
.pb-counter-btn:hover { border-color: var(--pb-primary); color: var(--pb-primary); }
.pb-counter-val  { font-size: 22px; font-weight: 700; color: var(--pb-text); min-width: 28px; text-align: center; }
.pb-surcharge-note {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--pb-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: #0369a1;
    margin-top: 6px;
}
