/* ==========================================================================
   GigHerald™ — Public Online Booking Portal Stylesheet
   Consumes design tokens exclusively from style.css
   ========================================================================== */

/* Anti-FOUC Pending State */
[data-theme-pending] body {
    visibility: hidden;
}

body {
    background-color: var(--surface-0);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.booking-page {
    max-width: 640px;
    margin: 40px auto;
    padding: 24px;
}

.booking-header {
    text-align: center;
    margin-bottom: 32px;
}

.provider-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    border: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin: 0 auto 16px;
    box-shadow: var(--shadow-sm);
}

.provider-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.provider-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.provider-license {
    display: inline-block;
    margin: 10px 0 0;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: var(--surface-1);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.provider-license[hidden] { display: none; }

.booking-card {
    background: var(--surface-1);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: inset 0 1px 0 var(--rim), 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
}

.section-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subheading {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.service-option {
    border: 1px solid var(--stroke);
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    transition: all 0.2s ease;
}

.service-option:hover {
    border-color: var(--secondary);
    background: color-mix(in srgb, var(--secondary) 10%, transparent);
}

.service-option.selected {
    border-color: var(--primary);
    border-width: 1.5px;
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent);
}

.service-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.service-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.service-price {
    font-weight: 800;
    font-size: 16px;
    color: var(--primary);
}

.dates-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.date-pill {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px solid var(--stroke);
    text-align: center;
    cursor: pointer;
    min-height: 48px;
    min-width: 48px;
    transition: all 0.2s ease;
}

.date-pill:hover {
    border-color: var(--secondary);
}

.date-pill.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent);
}

.date-pill.selected .date-day,
.date-pill.selected .date-num {
    color: var(--on-primary);
}

.date-pill.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    border-color: var(--stroke);
    background: var(--surface-2);
}

.date-day {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.date-num {
    font-size: 18px;
    font-weight: 800;
    margin-top: 2px;
    color: var(--text-primary);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}

.slot-btn {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px solid var(--stroke);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.slot-btn:hover {
    border-color: var(--secondary);
}

.slot-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
}

.presence-toggle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

@media (max-width: 540px) {
    .presence-toggle-container { grid-template-columns: 1fr; }
}

.presence-option {
    border: 1px solid var(--stroke);
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    min-height: 48px;
}

.presence-option:hover {
    border-color: var(--secondary);
    background: color-mix(in srgb, var(--secondary) 8%, transparent);
}

.presence-option.selected {
    border-color: var(--primary);
    border-width: 1.5px;
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent);
}

.presence-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.presence-icon {
    font-size: 20px;
}

.presence-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--secondary) 20%, transparent);
    color: var(--text-primary);
}

.presence-badge-recommended {
    background: color-mix(in srgb, var(--status-success) 18%, transparent);
    color: var(--status-success);
}

.presence-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.presence-sub {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.windows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.window-pill {
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px solid var(--stroke);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 48px;
}

.window-pill:hover {
    border-color: var(--secondary);
}

.window-pill.selected {
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    border-color: var(--primary);
    border-width: 1.5px;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent);
}

.window-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}

.window-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.density-discount-banner {
    background: color-mix(in srgb, var(--status-success) 12%, var(--surface-2));
    border: 1px solid color-mix(in srgb, var(--status-success) 40%, transparent);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.density-icon {
    font-size: 22px;
}

.density-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--status-success);
}

.density-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--surface-2);
    border: 1px solid var(--stroke-strong);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 14px;
    min-height: 48px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    min-height: 48px;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 35%, transparent);
    transition: transform 0.15s, opacity 0.15s;
}

.submit-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(1px);
}

.success-card {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.success-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.success-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.session-summary-card {
    background: var(--surface-2);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: left;
    border: 1px solid var(--stroke);
    margin-bottom: 20px;
}

.session-summary-heading {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 6px;
}

.summary-service-text {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.summary-datetime-text {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 2px;
}

.powered-by {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid var(--stroke);
}

.powered-by a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.powered-by-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.powered-by-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--surface-1);
    border: 1.5px solid var(--primary);
    color: var(--text-primary);
    padding: 12px 22px;
    border-radius: 9999px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 800;
    min-height: 48px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 12px color-mix(in srgb, var(--primary) 22%, transparent);
    transition: all 0.25s ease;
}

.powered-by-cta strong {
    color: var(--primary);
}

.powered-by-cta .viral-arrow {
    color: var(--secondary);
    font-size: 16px;
    transition: transform 0.2s ease;
}

.powered-by-cta:hover {
    background: color-mix(in srgb, var(--primary) 15%, var(--surface-2));
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 18px color-mix(in srgb, var(--secondary) 35%, transparent);
}

.powered-by-cta:hover .viral-arrow {
    transform: translateX(4px);
}

.powered-by-footer {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 14px;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   P2P DIRECT PAYMENT BUTTONS (VENMO, CASH APP, ZELLE)
   ========================================================================== */
.p2p-actions-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.p2p-action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--surface-1);
    border: 1px solid var(--stroke);
    color: var(--text-primary);
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    min-height: 52px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    text-align: left;
}

.p2p-btn-icon {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.p2p-btn-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.p2p-btn-title {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.p2p-btn-sub {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p2p-btn-arrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.p2p-venmo-btn {
    border-color: rgba(0, 140, 255, 0.35);
}
.p2p-venmo-btn .p2p-btn-title {
    color: rgb(96, 165, 250);
}
.p2p-venmo-btn:hover {
    border-color: rgb(0, 140, 255);
    background: rgba(0, 140, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 140, 255, 0.25);
}

.p2p-cashapp-btn {
    border-color: rgba(0, 214, 50, 0.35);
}
.p2p-cashapp-btn .p2p-btn-title {
    color: rgb(0, 214, 50);
}
.p2p-cashapp-btn:hover {
    border-color: rgb(0, 214, 50);
    background: rgba(0, 214, 50, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 214, 50, 0.25);
}

.p2p-zelle-btn {
    border-color: rgba(147, 51, 234, 0.35);
}
.p2p-zelle-btn .p2p-btn-title {
    color: rgb(192, 132, 252);
}
.p2p-zelle-btn:hover {
    border-color: rgb(147, 51, 234);
    background: rgba(147, 51, 234, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.25);
}

.p2p-toast {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--mint-bright, rgb(52, 211, 153));
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    animation: fadeIn 0.2s ease-in;
}

.booking-paused-card {
    text-align: center;
    padding: 40px 10px;
}

.booking-paused-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.booking-paused-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.booking-paused-desc {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 380px;
    margin: 0 auto 20px;
}

.hidden {
    display: none;
}

/* Multi-Photo Scope Gallery & Lightbox Modal */
.scope-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.scope-photo-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: var(--surface-2);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.scope-photo-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.scope-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    color: var(--text-secondary);
    font-size: 20px;
    border-radius: var(--radius-md);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-1);
    border: 1px solid var(--stroke);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    display: block;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-caption {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    background: var(--surface-1);
}

/* ==========================================================================
   CALENDAR SYNC & DIRECT CONTACT REASSURANCE (CLIENT PORTAL ENHANCEMENT)
   ========================================================================== */
.client-reassurance-card {
    margin: 16px 0;
    text-align: left;
    background: var(--surface-2);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.reassurance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.reassurance-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reassurance-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.action-buttons-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.action-pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    background: var(--surface-1);
    border: 1px solid var(--stroke);
    color: var(--text-primary);
    text-decoration: none;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    text-align: center;
}

.action-pill-btn:hover {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, var(--surface-1));
    transform: translateY(-1px);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 22%, transparent);
}

.action-pill-btn.secondary-btn:hover {
    border-color: var(--secondary);
    background: color-mix(in srgb, var(--secondary) 12%, var(--surface-1));
    box-shadow: 0 4px 14px color-mix(in srgb, var(--secondary) 22%, transparent);
}

.action-pill-btn .btn-icon {
    font-size: 16px;
    line-height: 1;
}
