/**
 * MA Detailing Calendar - Styles
 * Extends ma-calendar with detailing-specific multi-step UI (5 steps)
 * Design pattern: brand header + card + progress + inner content
 */

:root {
    /* Detailing colors - gunmetal + amber accents */
    --madetc-accent: #3D4548;
    --madetc-accent-dark: #2F363A;
    --madetc-accent-light: #EEF1F2;
    --madetc-accent-amber: #A87A2F;
    --madetc-accent-amber-light: #F6EFE0;

    /* Base colors */
    --madetc-text: #1B2420;
    --madetc-text-soft: #5B6660;
    --madetc-text-mute: #8A938D;
    --madetc-border: #E5DFD0;
    --madetc-border-soft: #EFEADC;
    --madetc-bg: #FFFFFF;
    --madetc-bg-muted: #F5F1E8;
    --madetc-bg-outer: #F5F1E8;
    --madetc-radius-sm: 10px;
    --madetc-radius-md: 12px;
    --madetc-radius-lg: 24px;
}

/* Prevent body scroll when modal is open */
body.madetc-modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

html.madetc-modal-open {
    overflow: hidden !important;
}

/* ===== Scoped reset ===== */
.madetc-root,
.madetc-root *,
.madetc-root *::before,
.madetc-root *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: inherit;
}

/* ===== Force dark text - aggressive overrides for WordPress themes ===== */
.madetc-root {
    color: #1B2420 !important;
}

.madetc-root h1,
.madetc-root h2,
.madetc-root h3,
.madetc-root h4,
.madetc-root h5,
.madetc-root h6,
.madetc-root p,
.madetc-root span,
.madetc-root label,
.madetc-root div {
    color: #1B2420 !important;
}

/* Ultra-specific overrides for step headers */
.madetc-root .madetc-card .madetc-step h1.madetc-h1,
.madetc-root .madetc-card h1.madetc-h1,
.madetc-root h1.madetc-h1,
h1.madetc-h1,
.madetc-h1 {
    color: #1B2420 !important;
}

/* Override any color: inherit or color: currentColor patterns */
.madetc-root *:not(.madetc-btn-primary):not(.wpbc-time-slot) {
    color: #1B2420;
}

/* Allow muted text colors for specific elements */
.madetc-step-label,
.madetc-sub,
.madetc-opt-meta,
.madetc-field-label small,
.madetc-foot {
    color: var(--madetc-text-mute) !important;
}

/* White text for buttons */
.madetc-btn-primary,
.madetc-confirm-icon svg {
    color: #ffffff !important;
}

/* ===== Outer Container ===== */
.madetc-root {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--madetc-text);
    background: var(--madetc-bg-outer);
    max-width: 720px;
    margin: 1.5rem auto;
    padding: 1.5rem;
    border-radius: 12px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-image:
        radial-gradient(circle at 12% 10%, rgba(61, 69, 72, 0.08), transparent 42%),
        radial-gradient(circle at 88% 88%, rgba(168, 122, 47, 0.07), transparent 42%);
}

.madetc-root button {
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    font-family: inherit;
}

.madetc-root input,
.madetc-root select,
.madetc-root textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.madetc-root :focus-visible {
    outline: 2px solid var(--madetc-accent);
    outline-offset: 2px;
}

.madetc-root :focus:not(:focus-visible) {
    outline: none;
}

/* ===== Card Container ===== */
.madetc-card {
    background: var(--madetc-bg);
    border-radius: var(--madetc-radius-lg);
    border: 1px solid var(--madetc-border-soft);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}


/* ===== Progress Stepper ===== */
.madetc-stepper {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}

.madetc-stepper-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--madetc-border);
    transition: background 0.2s ease;
}

.madetc-stepper-dot.active,
.madetc-stepper-dot.done {
    background: var(--madetc-accent);
}

/* ===== Step container ===== */
.madetc-step {
    display: none;
    animation: madetcFade 0.4s cubic-bezier(.2,.6,.2,1) both;
}

.madetc-step.active {
    display: block;
}

@keyframes madetcFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Typography ===== */
.madetc-step-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--madetc-text-mute);
    margin-bottom: 12px;
}

.madetc-h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--madetc-text);
    margin-bottom: 8px;
}

.madetc-sub {
    color: var(--madetc-text-soft);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 46ch;
}

/* ===== Service Tier Options ===== */
.madetc-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.madetc-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--madetc-bg-muted) !important;
    border: 1px solid var(--madetc-border);
    border-radius: var(--madetc-radius-md);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: left;
    width: 100%;
}

.madetc-option:hover {
    border-color: var(--madetc-accent);
    background: #E8E3D8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 69, 72, 0.12);
}

.madetc-option:focus-visible {
    outline: 2px solid var(--madetc-accent);
    outline-offset: 2px;
}

.madetc-opt-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.madetc-opt-icon svg {
    width: 22px;
    height: 22px;
}

.madetc-opt-icon.madetc-express {
    background: #DDE3E5;
    color: #3D4548;
}

.madetc-opt-icon.madetc-full {
    background: #D9E0DC;
    color: #2F4A3C;
}

.madetc-opt-icon.madetc-premium {
    background: #ECDDC2;
    color: #8A6324;
}

.madetc-opt-body {
    flex: 1;
    min-width: 0;
}

.madetc-opt-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
    letter-spacing: -0.005em;
    color: var(--madetc-text);
}

.madetc-opt-meta {
    font-size: 13.5px;
    color: var(--madetc-text-soft);
}

.madetc-opt-arrow {
    color: var(--madetc-text-mute);
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.madetc-option:hover .madetc-opt-arrow {
    color: var(--madetc-accent);
    transform: translateX(3px);
}

/* ===== Form fields ===== */
.madetc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
}

.madetc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Full width fields */
.madetc-field.full-width {
    grid-column: 1 / -1;
}

.madetc-field-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--madetc-text);
    letter-spacing: 0.03em;
}

.madetc-field-label small {
    color: var(--madetc-text-mute);
    font-weight: 400;
    font-size: 10.5px;
    text-transform: none;
    letter-spacing: 0;
}

.madetc-input-sm,
.madetc-textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 13.5px;
    border: 1px solid var(--madetc-border) !important;
    border-radius: 6px;
    background: var(--madetc-bg) !important;
    color: var(--madetc-text) !important;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

/* Override browser autofill styles */
.madetc-input-sm:-webkit-autofill,
.madetc-input-sm:-webkit-autofill:hover,
.madetc-input-sm:-webkit-autofill:focus,
.madetc-input-sm:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--madetc-bg) inset !important;
    -webkit-text-fill-color: var(--madetc-text) !important;
    border: 1px solid var(--madetc-border) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.madetc-textarea:-webkit-autofill,
.madetc-textarea:-webkit-autofill:hover,
.madetc-textarea:-webkit-autofill:focus,
.madetc-textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--madetc-bg) inset !important;
    -webkit-text-fill-color: var(--madetc-text) !important;
    border: 1px solid var(--madetc-border) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.madetc-input-sm:focus,
.madetc-textarea:focus {
    border-color: var(--madetc-accent) !important;
    background: var(--madetc-bg) !important;
    box-shadow: 0 0 0 3px rgba(61, 69, 72, 0.08);
}

.madetc-textarea {
    resize: vertical;
    min-height: 50px;
    line-height: 1.4;
}

.madetc-input-sm::placeholder,
.madetc-textarea::placeholder {
    color: var(--madetc-text-mute) !important;
    opacity: 1 !important;
}

/* ===== Address Autocomplete Dropdown ===== */
.madetc-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--madetc-bg);
    border: 1px solid var(--madetc-border);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 100;
    display: none;
}

.madetc-suggest.open {
    display: block;
}

.madetc-suggest-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--madetc-border-soft);
}

.madetc-suggest-item:last-of-type {
    border-bottom: none;
}

.madetc-suggest-item:hover {
    background: var(--madetc-bg-muted);
}

.madetc-suggest-icon {
    color: var(--madetc-text-mute);
    flex-shrink: 0;
    margin-top: 2px;
}

.madetc-suggest-text {
    flex: 1;
    min-width: 0;
}

.madetc-suggest-main {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--madetc-text);
    margin-bottom: 2px;
}

.madetc-suggest-meta {
    font-size: 11.5px;
    color: var(--madetc-text-mute);
}

.madetc-suggest-loading,
.madetc-suggest-empty {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--madetc-text-mute);
}

.madetc-suggest-attribution {
    padding: 8px 12px;
    font-size: 10px;
    color: var(--madetc-text);
    text-align: center;
    border-top: 1px solid var(--madetc-border-soft);
    background: var(--madetc-bg-muted);
}

.madetc-suggest-attribution a {
    color: var(--madetc-accent);
    text-decoration: none;
}

.madetc-suggest-attribution a:hover {
    text-decoration: underline;
}

/* Make address field container relative for dropdown positioning */
.madetc-field.full-width:has(#madetc-address) {
    position: relative;
}

/* ===== Vehicle size pills ===== */
.madetc-pills {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.madetc-pill {
    padding: 6px 10px;
    border: 1px solid var(--madetc-border);
    background: var(--madetc-bg-muted) !important;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--madetc-text) !important;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.madetc-pill:hover {
    border-color: var(--madetc-accent);
    background: #E8E3D8 !important;
}

.madetc-pill.selected {
    background: var(--madetc-accent) !important;
    color: white !important;
    border-color: var(--madetc-accent);
}

/* ===== Service options (checkboxes) ===== */
.madetc-service-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

/* Compact version for Step 2 */
.madetc-packages-wrapper {
    margin-bottom: 20px;
}

.madetc-packages-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--madetc-text);
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.madetc-packages-label small {
    color: var(--madetc-text-mute);
    font-weight: 400;
    font-size: 10.5px;
    text-transform: none;
    letter-spacing: 0;
}

.madetc-service-options.madetc-compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.madetc-service-option {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    background: var(--madetc-bg);
    border: 1px solid var(--madetc-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Compact styling for Step 2 packages */
.madetc-service-options.madetc-compact .madetc-service-option {
    padding: 6px 8px;
    gap: 6px;
}

.madetc-service-options.madetc-compact .madetc-service-label {
    font-size: 11px;
}

.madetc-service-options.madetc-compact .madetc-service-price {
    font-size: 10px;
}

.madetc-service-options.madetc-compact .madetc-service-checkbox {
    width: 13px;
    height: 13px;
}

.madetc-service-options.madetc-compact .madetc-service-checkbox svg {
    width: 8px;
    height: 8px;
}

.madetc-service-option:hover {
    border-color: var(--madetc-accent);
    background: var(--madetc-accent-light);
}

.madetc-service-option.selected {
    background: var(--madetc-accent-light);
    border-color: var(--madetc-accent);
}

.madetc-service-checkbox {
    width: 14px;
    height: 14px;
    border: 2px solid var(--madetc-border);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.madetc-service-option.selected .madetc-service-checkbox {
    background: var(--madetc-accent);
    border-color: var(--madetc-accent);
}

.madetc-service-checkbox svg {
    width: 9px;
    height: 9px;
    stroke: white;
    display: none;
}

.madetc-service-option.selected .madetc-service-checkbox svg {
    display: block;
}

.madetc-service-label {
    flex: 1;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--madetc-text);
    line-height: 1.3;
}

.madetc-service-price {
    font-size: 11px;
    font-weight: 600;
    color: var(--madetc-accent);
}

/* ===== Summary ===== */
.madetc-summary {
    background: var(--madetc-accent-light);
    border: 1px solid var(--madetc-accent-soft);
    border-radius: var(--madetc-radius-md);
    padding: 6px 18px;
    margin-bottom: 18px;
}

.madetc-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--madetc-border-soft);
    font-size: 14px;
    gap: 16px;
}

.madetc-summary-row:last-child {
    border-bottom: none;
}

.madetc-summary-row .k {
    color: var(--madetc-text-soft);
    font-weight: 500;
}

.madetc-summary-row .v {
    color: var(--madetc-text);
    font-weight: 600;
    text-align: right;
    max-width: 62%;
}

/* ===== Pricing ===== */
.madetc-pricing {
    background: var(--madetc-accent-amber-light);
    border: 1px solid var(--madetc-accent-amber);
    border-radius: var(--madetc-radius-sm);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.madetc-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.madetc-pricing-row:last-child {
    margin-bottom: 0;
}

.madetc-pricing-label {
    font-size: 14px;
    color: var(--madetc-text-soft);
}

.madetc-pricing-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--madetc-accent-amber);
}

.madetc-pricing-total {
    padding-top: 12px;
    border-top: 1px solid var(--madetc-accent-amber);
    margin-top: 12px;
}

.madetc-pricing-total .madetc-pricing-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--madetc-text);
}

.madetc-pricing-total .madetc-pricing-value {
    font-size: 20px;
    color: var(--madetc-accent-amber);
}

.madetc-pricing-note {
    font-size: 12px;
    color: #8A6324;
    margin-top: 12px;
    line-height: 1.5;
}

/* ===== Primary button ===== */
.madetc-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

.madetc-btn-primary {
    flex: 1;
    background: var(--madetc-text) !important;
    color: var(--madetc-bg-outer) !important;
    border: none;
    padding: 15px 24px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -0.005em;
}

.madetc-btn-primary:hover:not(:disabled) {
    background: var(--madetc-accent);
    transform: translateY(-1px);
}

.madetc-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--madetc-border) !important;
    color: var(--madetc-text-mute) !important;
}

.madetc-btn-primary svg {
    transition: transform 0.2s;
}

.madetc-btn-primary:hover:not(:disabled) svg {
    transform: translateX(2px);
}

/* ===== Confirmation ===== */
.madetc-confirm-head {
    text-align: center;
    padding: 12px 0 4px;
}

.madetc-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--madetc-accent-light);
    color: var(--madetc-accent);
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    animation: pop 0.5s cubic-bezier(.34,1.5,.64,1) both;
}

@keyframes pop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.madetc-confirm-icon svg {
    width: 32px;
    height: 32px;
}

.madetc-next-up {
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--madetc-bg-outer);
    border: 1px solid var(--madetc-border);
    border-radius: 12px;
    font-size: 13px;
    color: var(--madetc-text-soft);
    text-align: left;
    line-height: 1.55;
}

.madetc-next-up strong {
    color: var(--madetc-text);
}

/* ===== Footer Navigation ===== */
.madetc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.5rem 0;
    margin-top: 0.5rem;
}

.madetc-footer.hidden {
    display: none;
}

.madetc-nav-btn {
    font-size: 13px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    color: var(--madetc-text-mute);
    transition: color 0.15s ease;
}

.madetc-nav-btn:hover {
    color: var(--madetc-text);
}

.madetc-nav-btn.madetc-nav-primary {
    background: var(--madetc-accent-dark);
    color: white !important;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 500;
}

.madetc-nav-btn.madetc-nav-primary:hover:not(:disabled) {
    background: var(--madetc-accent);
}

.madetc-nav-btn.madetc-nav-primary:disabled {
    background: var(--madetc-border);
    color: var(--madetc-text-mute) !important;
    cursor: not-allowed;
}

.madetc-step-readout {
    font-size: 12px;
    color: var(--madetc-text-mute);
}

.madetc-foot {
    text-align: center;
    color: var(--madetc-text-mute);
    font-size: 12px;
    margin-top: 18px;
    padding: 0 12px;
    line-height: 1.6;
}

/* ===== Embedded ma-calendar ===== */
.madetc-calendar-wrapper {
    position: relative;
    min-height: 400px;
}

/* Loading indicator */
.madetc-calendar-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--madetc-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.madetc-calendar-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.madetc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--madetc-border);
    border-top-color: var(--madetc-accent);
    border-radius: 50%;
    animation: madetcSpin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes madetcSpin {
    to {
        transform: rotate(360deg);
    }
}

.madetc-loading-text {
    font-size: 13px;
    color: var(--madetc-text-mute);
    margin: 0;
}

/* Hide ma-calendar elements we don't want */
.madetc-root .wpbc-brand-header,
.madetc-root .wpbc-tab-bar,
.madetc-root .wpbc-status-bar,
.madetc-root .wpbc-continue-row,
.madetc-root .wpbc-footer-note,
.madetc-root .wpbc-tab-panel[data-panel="1"],
.madetc-root .wpbc-tab-panel[data-panel="2"] {
    display: none !important;
}

/* Show only the date & time panel */
.madetc-root .wpbc-tab-panel[data-panel="0"] {
    display: block !important;
}

/* Style adjustments for embedded calendar */
.madetc-root .wpbc-card {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

/* Selected date indicator */
.madetc-root .wpbc-selected-date-indicator {
    margin-bottom: 2%;
}

/* Calendar legend */
.madetc-root .wpbc-calendar-legend {
    margin-top: 5%;
}

/* Preserve ma-calendar's own styling */
.madetc-root .wpbc-date-time-grid,
.madetc-root .wpbc-date-time-grid *,
.madetc-root .wpbc-calendar-col,
.madetc-root .wpbc-calendar-col *,
.madetc-root .wpbc-slots-col,
.madetc-root .wpbc-slots-col * {
    font-family: inherit;
    color: inherit;
}

/* Preserve ma-calendar time slot styling */
.madetc-root .wpbc-time-slot,
.madetc-root button.wpbc-time-slot {
    background: #fff !important;
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    text-align: center !important;
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif !important;
    transition: border-color 0.12s !important;
    pointer-events: auto !important;
}

.madetc-root .wpbc-time-slot:hover:not(.disabled),
.madetc-root button.wpbc-time-slot:hover:not(.disabled) {
    border-color: var(--wpbc-accent-color, #2536eb) !important;
}

.madetc-root .wpbc-time-slot.selected,
.madetc-root button.wpbc-time-slot.selected {
    background: var(--wpbc-accent-color, #2536eb) !important;
    border-color: var(--wpbc-accent-color, #2536eb) !important;
    color: #fff !important;
}

.madetc-root .wpbc-time-slot.disabled,
.madetc-root button.wpbc-time-slot.disabled {
    background: #f3f4f6 !important;
    color: #c0c0c0 !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

/* Ensure time slot grid is visible and interactive */
.madetc-root .wpbc-slots-grid {
    pointer-events: auto !important;
}

/* Add spacing to calendar legend */
.madetc-root .wpbc-legend,
.madetc-root .flatpickr-calendar + .wpbc-legend,
.madetc-calendar-wrapper .wpbc-legend {
    margin-top: 32px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--madetc-border-soft) !important;
}

/* Better spacing for flatpickr calendar */
.madetc-root .flatpickr-calendar {
    margin-bottom: 0 !important;
}

/* ===== Email Verification Modal ===== */
.madetc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.madetc-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 999998 !important;
}

.madetc-modal-content {
    position: relative;
    background: var(--madetc-bg);
    border-radius: var(--madetc-radius-md);
    padding: 40px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: madetcModalFade 0.25s ease;
    z-index: 999999 !important;
}

@keyframes madetcModalFade {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.madetc-verification-icon {
    width: 56px;
    height: 56px;
    background: var(--madetc-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--madetc-accent);
    margin: 0 auto 20px;
}

.madetc-verification-icon svg {
    width: 28px;
    height: 28px;
}

.madetc-verification-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    color: #1B2420 !important;
    margin-bottom: 12px;
}

.madetc-verification-desc {
    font-size: 14px;
    color: #6b7280 !important;
    line-height: 1.5;
    margin-bottom: 24px;
}

.madetc-code-input-group {
    margin-bottom: 16px;
}

.madetc-code-input {
    width: 100%;
    max-width: 220px;
    padding: 16px 20px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-align: center;
    border: 2px solid var(--madetc-border);
    border-radius: var(--madetc-radius-sm);
    background: #fafafa;
    color: var(--madetc-text);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.madetc-code-input:focus {
    outline: none;
    border-color: var(--madetc-accent);
    background: var(--madetc-bg);
    box-shadow: 0 0 0 4px rgba(61, 69, 72, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.madetc-code-input::placeholder {
    color: #d1d5db;
    opacity: 0.6;
}

.madetc-verification-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: var(--madetc-radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
}

.madetc-btn-verify {
    width: 100%;
    padding: 14px 24px;
    background: var(--madetc-accent-dark);
    color: white;
    border: none;
    border-radius: var(--madetc-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.madetc-btn-verify:hover:not(:disabled) {
    background: var(--madetc-accent);
}

.madetc-btn-verify:disabled {
    background: var(--madetc-border);
    color: var(--madetc-text-mute);
    cursor: not-allowed;
}

.madetc-verification-resend {
    font-size: 13px;
    color: #6b7280 !important;
    margin-top: 16px;
    margin-bottom: 0;
}

.madetc-link-btn {
    background: none;
    border: none;
    color: var(--madetc-accent);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}

.madetc-link-btn:hover {
    color: var(--madetc-accent-dark);
}

/* ===== Mobile responsive ===== */
@media (max-width: 640px) {
    .madetc-root {
        margin: 0;
        max-width: 100%;
        border-radius: 12px !important;
        padding: 1rem;
        background-image: none;
    }

    .madetc-card,
    .madetc-root .madetc-card {
        padding: 1.25rem;
        border-radius: 18px !important;
        -webkit-border-radius: 18px !important;
        -moz-border-radius: 18px !important;
    }

    .madetc-option {
        border-radius: var(--madetc-radius-sm);
    }

    .madetc-h1 {
        font-size: 24px;
    }

    /* Stack form fields on mobile */
    .madetc-form-grid {
        grid-template-columns: 1fr;
    }

    /* Stack service options on mobile */
    .madetc-service-options {
        grid-template-columns: 1fr;
    }

    /* Compact packages still 2 columns on mobile */
    .madetc-service-options.madetc-compact {
        grid-template-columns: 1fr 1fr;
    }

    .madetc-stepper {
        margin-bottom: 0.75rem;
    }

    .madetc-summary-row .v {
        max-width: 58%;
        font-size: 13px;
    }

    /* Calendar wrapper - prevent overflow */
    .madetc-calendar-wrapper {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding: 0 0.5rem;
    }

    /* Modal - optimized for mobile */
    .madetc-modal {
        padding: 16px;
        align-items: center;
        justify-content: flex-start;
        padding-top: 140px;
    }

    .madetc-modal-content {
        padding: 32px 24px 28px;
        max-width: 100%;
        border-radius: 16px;
    }

    .madetc-code-input {
        font-size: 26px;
        padding: 16px 18px;
        letter-spacing: 0.25em;
        max-width: 100%;
        width: 100%;
    }

    .madetc-btn-verify {
        padding: 16px 24px;
        font-size: 15px;
        font-weight: 600;
    }
}

/* ===== VERIFICATION CODE INPUT - ENHANCED VISIBILITY ===== */

/* Input field - dark text, visible border */
.madetc-code-input {
    color: #1a1f2e !important;
    background: #ffffff !important;
    border: 2px solid #d1d5db !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-align: center !important;
    padding: 16px !important;
    border-radius: 8px !important;
    font-family: 'Courier New', Courier, monospace !important;
}

/* Placeholder text - darker gray for visibility */
.madetc-code-input::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* Firefox placeholder */
.madetc-code-input::-moz-placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* Chrome/Safari/Edge placeholder */
.madetc-code-input::-webkit-input-placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* IE placeholder */
.madetc-code-input:-ms-input-placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* Focus state - accent border */
.madetc-code-input:focus {
    border-color: var(--madetc-accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px var(--madetc-accent-light) !important;
}

/* Autofill state - keep dark text */
.madetc-code-input:-webkit-autofill,
.madetc-code-input:-webkit-autofill:hover,
.madetc-code-input:-webkit-autofill:focus,
.madetc-code-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #1a1f2e !important;
    border: 2px solid #d1d5db !important;
}
