/* Beauchoix Estimator - Minimal Design for iframe */

/* Fonts */
@font-face {
    font-family: 'beauchoix';
    src: url('fonts/23abvvsJnimeUT4yXx7mwr8bU.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'b-paragraphe';
    src: url('fonts/gyByhwUxId8gMEwcGFU.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Variables - Beauchoix DA unified */
:root {
    --bg: #040404;
    --bg-elevated: #080808;
    --bg-card: #0c0c0c;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    --brand: #fe1111;
    --brand-hover: #ff2d2d;
    --radius: 10px;
    --radius-sm: 6px;
    --transition: 0.2s ease;
}

/* Font Quality & Crisp Rendering */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Crisp text and icons */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-variant-ligatures: common-ligatures discretionary-ligatures contextual;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Disable scroll completely */
    overflow: hidden;
    height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #040404;
    color: var(--text);
    line-height: 1.5;
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

/* Initial load animation */
@keyframes wrapperFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(15px) scale(0.98);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

/* Wrapper with Beauchoix border style */
.estimator-wrapper {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    /* Beauchoix exact color #040404 */
    background: #040404;
    border-radius: 16px;
    box-shadow: 
        inset 0 1px 5px 1px rgba(255, 255, 255, 0.05),
        inset 0 -2px 5px 1px rgba(0, 0, 0, 0.5);
    position: relative;
    /* Smooth entrance animation */
    animation: wrapperFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (max-width: 768px) {
    .estimator-wrapper {
        max-width: 100%;
        padding: 20px 16px;
        border-radius: 12px;
        overflow-y: auto; /* Allow scroll on mobile only */
    }
}

/* Outer border glow effect */
.estimator-wrapper::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(180deg, #222 0%, #0a0a0a 100%);
    z-index: -1;
}

/* Stepper */
.stepper {
    margin-bottom: 32px;
}

.stepper-track {
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    margin-bottom: 16px;
    overflow: hidden;
}

.stepper-progress {
    height: 100%;
    width: 25%;
    background: var(--brand);
    border-radius: 1px;
    transition: width 0.4s ease;
}

.stepper-steps {
    display: flex;
    justify-content: space-between;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.4;
    transition: opacity var(--transition);
}

.stepper-step.active,
.stepper-step.completed {
    opacity: 1;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all var(--transition);
}

.stepper-step.active .step-dot {
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(254, 17, 17, 0.2);
}

.stepper-step.completed .step-dot {
    background: var(--brand);
}

.step-text {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form */
.form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Staggered animations for cards */
.project-card:nth-child(1) { animation: fadeInScale 0.4s ease 0.05s both; }
.project-card:nth-child(2) { animation: fadeInScale 0.4s ease 0.1s both; }
.project-card:nth-child(3) { animation: fadeInScale 0.4s ease 0.15s both; }
.project-card:nth-child(4) { animation: fadeInScale 0.4s ease 0.2s both; }
.project-card:nth-child(5) { animation: fadeInScale 0.4s ease 0.25s both; }

/* Staggered animations for form fields */
.field:nth-child(1) { animation: fadeInUp 0.4s ease 0.05s both; }
.field:nth-child(2) { animation: fadeInUp 0.4s ease 0.1s both; }
.field:nth-child(3) { animation: fadeInUp 0.4s ease 0.15s both; }
.field:nth-child(4) { animation: fadeInUp 0.4s ease 0.2s both; }
.field:nth-child(5) { animation: fadeInUp 0.4s ease 0.25s both; }
.field:nth-child(6) { animation: fadeInUp 0.4s ease 0.3s both; }
.field:nth-child(7) { animation: fadeInUp 0.4s ease 0.35s both; }

/* Step Header */
.step-header {
    margin-bottom: 16px;
    animation: slideInLeft 0.5s ease both;
}

.step-title {
    font-family: 'beauchoix', sans-serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    line-height: 1.1;
}

.step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Project Cards Grid - Compact for no-scroll desktop */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.project-card-full {
    grid-column: 1 / -1;
}

.other-input {
    margin-top: 12px;
}

.project-card {
    cursor: pointer;
}

.project-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    transition: all var(--transition);
    min-height: 80px;
    height: 100%;
}

.project-card:hover .card-inner {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.project-card input:checked + .card-inner {
    border-color: var(--brand);
    background: rgba(254, 17, 17, 0.05);
}

.card-icon {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
    stroke-width: 1px;
    transition: color var(--transition);
}

.project-card input:checked + .card-inner .card-icon {
    color: var(--brand);
}

.card-title {
    font-family: 'beauchoix', sans-serif;
    font-size: 13px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    display: none; /* Hide on desktop for compact view */
}

@media (max-width: 768px) {
    .card-desc {
        display: block;
    }
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-label .optional {
    color: var(--text-muted);
    text-transform: none;
}

.field-label .required {
    color: var(--brand);
    text-transform: none;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}

textarea {
    resize: none;
    min-height: 60px;
    max-height: 80px;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
textarea:focus {
    border-color: var(--brand);
    background: var(--bg-elevated);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Field hint */
.field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-card);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--brand);
    background: rgba(254, 17, 17, 0.05);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    stroke-width: 1.5px;
}

.upload-zone:hover .upload-icon,
.upload-zone.dragover .upload-icon {
    color: var(--brand);
}

.upload-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.upload-link {
    color: var(--brand);
    text-decoration: underline;
    cursor: pointer;
}

.upload-formats {
    font-size: 11px;
    color: var(--text-muted);
}

/* Uploaded Files List */
.uploaded-files {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uploaded-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    animation: fadeInScale 0.2s ease;
}

.uploaded-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.uploaded-file-icon {
    width: 20px;
    height: 20px;
    color: var(--brand);
    flex-shrink: 0;
}

.uploaded-file-name {
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uploaded-file-size {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.uploaded-file-remove {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition);
    flex-shrink: 0;
}

.uploaded-file-remove:hover {
    color: var(--brand);
}

.uploaded-file-remove svg {
    width: 16px;
    height: 16px;
}

/* Select */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 40px 12px 14px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: all var(--transition);
}

.select-wrapper select:focus {
    border-color: var(--brand);
    background: var(--bg-elevated);
}

.select-wrapper select option {
    background: var(--bg-card);
    color: var(--text);
}

.select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
    stroke-width: 1px;
}

/* Chips */
.chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Staggered chip animations */
.chip:nth-child(1) { animation: fadeInScale 0.3s ease 0.02s both; }
.chip:nth-child(2) { animation: fadeInScale 0.3s ease 0.04s both; }
.chip:nth-child(3) { animation: fadeInScale 0.3s ease 0.06s both; }
.chip:nth-child(4) { animation: fadeInScale 0.3s ease 0.08s both; }
.chip:nth-child(5) { animation: fadeInScale 0.3s ease 0.1s both; }
.chip:nth-child(6) { animation: fadeInScale 0.3s ease 0.12s both; }
.chip:nth-child(7) { animation: fadeInScale 0.3s ease 0.14s both; }
.chip:nth-child(8) { animation: fadeInScale 0.3s ease 0.16s both; }
.chip:nth-child(9) { animation: fadeInScale 0.3s ease 0.18s both; }
.chip:nth-child(10) { animation: fadeInScale 0.3s ease 0.2s both; }
.chip:nth-child(11) { animation: fadeInScale 0.3s ease 0.22s both; }
.chip:nth-child(12) { animation: fadeInScale 0.3s ease 0.24s both; }
.chip:nth-child(13) { animation: fadeInScale 0.3s ease 0.26s both; }
.chip:nth-child(14) { animation: fadeInScale 0.3s ease 0.28s both; }
.chip:nth-child(15) { animation: fadeInScale 0.3s ease 0.3s both; }

.chip {
    cursor: pointer;
}

.chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip span {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.chip:hover span {
    border-color: var(--border-hover);
    color: var(--text);
}

.chip input:checked + span {
    border-color: var(--brand);
    background: rgba(254, 17, 17, 0.08);
    color: var(--text);
}

/* Offers Grid */
.offers-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.offer-card:hover {
    border-color: var(--border-hover);
}

.offer-card.popular {
    border-color: rgba(254, 17, 17, 0.3);
}

.offer-card.popular::before {
    content: 'POPULAIRE';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--brand);
    color: var(--text);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 10px;
}

.offer-card.selected {
    border-color: var(--brand);
    background: rgba(254, 17, 17, 0.05);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.offer-info h3 {
    font-family: 'beauchoix', sans-serif;
    font-size: 18px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.offer-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.offer-price {
    text-align: right;
}

.offer-price .from {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-price .amount {
    font-family: 'beauchoix', sans-serif;
    font-size: 28px;
    color: var(--text);
    line-height: 1;
}

.offer-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.offer-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.offer-feature svg {
    width: 14px;
    height: 14px;
    color: var(--brand);
    stroke-width: 1px;
}

.offer-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    color: var(--text-secondary);
    font-family: 'beauchoix', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition);
}

.offer-btn:hover {
    border-color: var(--brand);
    color: var(--text);
}

.offer-card.selected .offer-btn {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--text);
}

/* Calendar */
.calendar-wrapper {
    margin-top: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.calendar-icon {
    width: 20px;
    height: 20px;
    color: var(--brand);
    stroke-width: 1px;
}

.calendar-header h3 {
    font-family: 'beauchoix', sans-serif;
    font-size: 14px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-header p {
    font-size: 12px;
    color: var(--text-muted);
}

#my-cal-inline-15min {
    min-height: 450px;
}

/* Navigation */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
}

.btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    visibility: hidden;
    opacity: 0;
}

.btn-ghost.visible {
    visibility: visible;
    opacity: 1;
}

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

.btn-primary {
    background: var(--brand);
    color: var(--text);
}

.btn-primary:hover {
    background: var(--brand-hover);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    border-color: var(--brand);
}

.toast svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5px;
}

.toast.error svg {
    color: var(--brand);
}

.toast.success svg {
    color: #22c55e;
}

/* Phone Input Override */
.iti {
    width: 100%;
}

.iti__tel-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px 12px 90px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}

.iti__tel-input:focus {
    border-color: var(--brand);
    background: var(--bg-elevated);
}

.iti__country-container {
    padding-left: 10px;
}

.iti__selected-country {
    background: transparent !important;
}

.iti__selected-country-primary {
    background: transparent !important;
}

.iti__arrow {
    border-top-color: var(--text-secondary) !important;
}

.iti__dropdown-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
}

.iti__search-input {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.iti__country {
    background: transparent !important;
}

.iti__country:hover {
    background: var(--bg-elevated) !important;
}

.iti__country-name,
.iti__dial-code {
    color: var(--text) !important;
}

/* Loading & AI Result */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.loader {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader-icon {
    width: 24px;
    height: 24px;
    color: var(--brand);
    stroke-width: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

.loading-text {
    font-size: 13px;
    color: var(--text-secondary);
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* AI Result */
.ai-result {
    animation: fadeIn 0.5s ease;
}

/* Simplified Result Hero */
.result-hero {
    text-align: center;
    padding: 32px 20px;
    margin-bottom: 24px;
}

.offer-name {
    font-family: 'beauchoix', sans-serif;
    font-size: 36px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.offer-price-display {
    font-family: 'Helveticaneue', sans-serif;
    font-size: 48px;
    font-weight: 500;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.1s forwards;
}

.offer-price-note {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

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

/* Result Message (Brief) */
.result-message {
    text-align: center;
    padding: 0 10px;
    margin-bottom: 32px;
}

.brief-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

/* Collapsible Details */
.result-details {
    margin-bottom: 32px;
}

.result-details summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px;
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
    list-style: none;
}

.result-details summary::-webkit-details-marker {
    display: none;
}

.result-details summary:hover {
    color: var(--text);
}

.result-details summary svg {
    width: 16px;
    height: 16px;
    stroke-width: 1px;
    transition: transform 0.3s ease;
}

.result-details[open] summary svg {
    transform: rotate(180deg);
}

.details-content {
    padding-top: 16px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Justification in details */
.result-justification {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.justification-title {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.justification-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Recommendations in details */
.result-recommendations {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 16px;
}

.reco-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reco-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    line-height: 1.5;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reco-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reco-item strong {
    color: var(--text);
    font-size: 13px;
}

.reco-item span {
    color: var(--text-muted);
    font-size: 12px;
}

/* CTA Button */
.btn-cta {
    width: 100%;
    background: var(--brand);
    color: var(--text);
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 500;
    justify-content: center;
}

.btn-cta:hover {
    background: var(--brand-hover);
}

.btn-cta svg {
    width: 18px;
    height: 18px;
}

/* Calendar wrapper full */
.calendar-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 500px;
}

#my-cal-inline-secret {
    min-height: 500px;
}

/* Responsive Tablet */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }
    
    .step-title {
        font-size: 22px;
    }
    
    .btn {
        padding: 12px 20px;
    }
}

/* Responsive Mobile */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .estimator-wrapper {
        padding: 16px 14px;
        border-radius: 10px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .card-inner {
        min-height: auto;
        padding: 16px;
    }
    
    .field-row {
        grid-template-columns: 1fr;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-desc {
        font-size: 12px;
    }
    
    .offer-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .offer-price {
        text-align: left;
    }
    
    .nav-buttons {
        padding: 12px 0;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 13px;
    }
}
