/* ========================================
   SIMULATOR COMPONENT — Kyoku Peinture
   ======================================== */

/* Container */
.sim-pro-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--color-gray-light);
    border-top: 5px solid var(--color-red);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin: 0;
    font-family: var(--font-primary);
}
.sim-header { text-align: center; margin-bottom: 2.5rem; }
.sim-header h3 { font-family: var(--font-heading); font-size: 2rem; color: var(--color-black); margin-top: 0; margin-bottom: 0.5rem; text-transform: uppercase; }
.sim-header p { color: #666; font-size: 1.1rem; margin: 0; }

/* Progress Stepper */
.steps-nav { display: flex; justify-content: space-between; position: relative; margin-bottom: 3rem; }
.steps-nav::before {
    content: ''; position: absolute; top: 20px; left: 0; right: 0; height: 3px; background: #eee; z-index: 1;
}
.step-indicator {
    background: #eee; color: #999; font-weight: bold; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; transition: all 0.3s;
}
.step-indicator.active { background: var(--color-red); color: white; box-shadow: 0 0 10px rgba(220, 38, 38, 0.3); }
.step-indicator.done { background: var(--color-black); color: white; }
.step-label { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); font-size: 0.85rem; color: #666; white-space: nowrap; font-weight: 600; }

/* Animations & Panels */
.step-panel { display: none; animation: simFadeIn 0.4s ease; }
.step-panel.active { display: block; }
@keyframes simFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.panel-title { font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--color-black); border-bottom: 2px solid #f0f0f0; padding-bottom: 0.5rem; text-align: center; }

/* Mode Cards (Step 1) */
.mode-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.mode-card { border: 2px solid #eee; border-radius: 8px; padding: 2rem 1.5rem; text-align: center; cursor: pointer; transition: all 0.2s; background: #fafafa; }
.mode-card:hover { border-color: var(--color-red); transform: translateY(-3px); }
.mode-card.selected { border-color: var(--color-red); background: #fff8f8; box-shadow: 0 5px 15px rgba(220,38,38,0.1); }
.mode-card h4 { font-family: var(--font-heading); font-size: 1.2rem; margin: 0 0 0.8rem 0; color: var(--color-black); }
.mode-card p { font-size: 0.95rem; color: #666; margin: 0; line-height: 1.4; }

/* Forms & Inputs */
.sim-pro-container .form-group { margin-bottom: 1.5rem; }
.sim-pro-container .form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--color-black); }

.pills-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-btn { flex: 1 1 calc(33.333% - 0.5rem); padding: 0.8rem 0.5rem; border: 1px solid #ccc; border-radius: 4px; background: #fff; cursor: pointer; text-align: center; color: var(--color-black); font-size: 0.95rem; font-weight: 500; transition: 0.2s; display: flex; align-items: center; justify-content: center; user-select: none; }
.pill-btn:hover { border-color: var(--color-red); }
.pill-btn.active { background: var(--color-red) !important; color: white !important; border-color: var(--color-red) !important; }
@media(max-width: 650px) { .pill-btn { flex: 1 1 100%; } }

.sim-pro-container .form-control { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 1rem; background: #fff; }
.sim-pro-container .form-control:focus { outline: none; border-color: var(--color-red); }

.checkbox-group { display: flex; align-items: center; gap: 0.8rem; padding: 1rem; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; background: #fff; transition: 0.2s; }
.checkbox-group:hover { border-color: var(--color-red); }
.checkbox-group input { width: 1.2rem; height: 1.2rem; accent-color: var(--color-red); cursor: pointer; }

.range-header { display: flex; justify-content: space-between; align-items: center; }
.val-badge { background: var(--color-red); color: white; padding: 0.2rem 0.8rem; border-radius: 20px; font-weight: bold; }

/* Custom Rooms (Step 2) */
.room-card { background: #fafafa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; position: relative; }
.room-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.btn-remove { background: none; border: none; color: #999; font-size: 1.8rem; cursor: pointer; transition: 0.2s; padding: 0 0.5rem; line-height: 1; }
.btn-remove:hover { color: var(--color-red); }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.btn-add-room { width: 100%; padding: 1rem; border: 2px dashed #bbb; background: #fdfdfd; color: #555; font-size: 1.1rem; font-weight: bold; cursor: pointer; border-radius: 8px; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.btn-add-room:hover { border-color: var(--color-red); color: var(--color-red); background: #fff8f8; }

/* Navigation Buttons */
.sim-nav { display: flex; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.sim-pro-container .btn { padding: 0.8rem 1.8rem; font-size: 1.05rem; font-weight: bold; border-radius: 4px; cursor: pointer; transition: 0.2s; border: none; }
.sim-pro-container .btn-outline { background: transparent; border: 2px solid #ddd; color: #666; }
.sim-pro-container .btn-outline:hover { background: #eee; border-color: #ccc; }
.sim-pro-container .btn-primary { background: var(--color-red); color: white; }
.sim-pro-container .btn-primary:hover { background: #b01b1b; }
.sim-pro-container .btn-primary:disabled { background: #ffaaaa; cursor: not-allowed; }

/* Result Box (Step 4) */
.result-box { background: var(--color-black); color: white; padding: 3rem; text-align: center; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.15); border-bottom: 6px solid var(--color-red); }
.result-price { font-size: 3.5rem; font-weight: bold; color: var(--color-red); letter-spacing: -1px; margin: 1rem 0; line-height: 1; }
.result-details { background: rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 8px; text-align: left; margin-top: 2.5rem; font-size: 1.05rem; }
.detail-row { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; }
.detail-row:last-child { border-bottom: none; }

.cta-btn { display: inline-block; background: var(--color-red); color: white; text-decoration: none; padding: 1rem 2.5rem; border-radius: 4px; font-weight: bold; font-size: 1.1rem; margin-top: 2.5rem; transition: 0.3s; }
.cta-btn:hover { background: white; color: var(--color-red); }

/* --- Inline-to-class conversions --- */

/* Live price box */
.sim-live-price {
    background: var(--color-black);
    color: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-top: 4px solid var(--color-red);
}
.sim-live-label {
    color: #aaa;
    font-size: 1rem;
    font-family: var(--font-primary);
    font-weight: normal;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: none;
}
.sim-live-amount {
    color: var(--color-red);
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: -1px;
}

/* Surface group */
.sim-surface-group {
    padding: 1.5rem;
    background: var(--color-gray-light);
    border-radius: 8px;
    margin-top: 1.5rem;
}
.sim-surface-label { margin: 0; font-size: 1.1rem; }
.sim-surface-badge { font-size: 1.2rem; }
.sim-range { margin-top: 1.5rem; accent-color: var(--color-red); cursor: pointer; }
.sim-fg-mt { margin-top: 1.5rem; }

/* Upload group */
.sim-upload-group {
    margin-top: 2.5rem;
    padding: 2rem 1.5rem;
    background: #fdfdfd;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
}
.sim-upload-label { cursor: pointer; display: block; margin: 0; }
.sim-upload-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.sim-upload-title { font-size: 1.1rem; color: var(--color-black); }
.sim-upload-desc { font-size: 0.95rem; color: #666; margin-top: 0.5rem; margin-bottom: 0; }
.sim-hidden { display: none; }
.sim-photos-preview { margin-top: 1rem; font-size: 0.95rem; color: var(--color-red); font-weight: bold; min-height: 20px; }

/* Room name input */
.sim-room-name {
    font-weight: bold;
    font-size: 1.15rem;
    border: none;
    border-bottom: 2px solid var(--color-red);
    border-radius: 0;
    padding: 0.3rem 0;
    width: 80%;
    background: transparent;
}

/* Room surface box */
.sim-room-surface-box { background: var(--color-gray-light); padding: 1rem; border-radius: 4px; }
.sim-room-label { margin: 0; font-size: 0.95rem; color: #333; }
.sim-badge-sm { font-size: 0.9rem; }
.sim-range-sm { margin-top: 1rem; accent-color: var(--color-red); }
.sim-room-sublabel { font-size: 0.95rem; color: #555; }
.sim-desc { color: #666; margin-bottom: 1.5rem; }

/* Add room button */
.sim-add-room {
    width: 100%;
    border: 2px dashed #ccc;
    background: #fafafa;
    color: #555;
    padding: 1.2rem;
}
.sim-add-icon { font-size: 1.5rem; vertical-align: middle; }

/* Result Step 4 */
.sim-detail-bold { font-weight: bold; }
.sim-price-highlight { color: var(--color-red); font-weight: bold; }
.sim-detail-sub { color: #bbb; font-size: 0.9rem; }
.sim-room-meta { color: #aaa; font-size: 0.85em; }
.sim-room-price { color: white; font-weight: bold; }
.sim-total-row {
    border-top: 2px solid rgba(255,255,255,0.2);
    margin-top: 1rem;
    padding-top: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--color-red);
}
.sim-result-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    text-transform: uppercase;
    color: #fff;
}
.sim-disclaimer {
    font-size: 0.95rem;
    color: #aaa;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}
.sim-disclaimer strong { color: #ddd; }
.sim-details-header {
    font-weight: bold;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.8rem;
    font-size: 1.1rem;
    color: white;
}

/* Contact form in results */
.sim-contact-box {
    margin-top: 2.5rem;
    padding: 2rem;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}
.sim-contact-title {
    margin: 0 0 1rem 0;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
}
.sim-contact-desc {
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.sim-contact-form { max-width: 600px; margin: 0 auto; }
.sim-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.sim-form-label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.sim-form-input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.95);
    font-size: 0.95rem;
    color: #333;
}
.sim-form-textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.95);
    font-size: 0.95rem;
    color: #333;
    resize: vertical;
}
.sim-mb-1 { margin-bottom: 1rem; }
.sim-mb-15 { margin-bottom: 1.5rem; }

/* Send buttons */
.sim-send-prompt {
    text-align: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.sim-send-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.sim-btn-send {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    cursor: pointer;
}
.sim-btn-email {
    background: var(--color-red);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(201,32,45,0.4);
}
.sim-btn-whatsapp {
    background: rgba(37,211,102,0.2);
    border: 2px solid #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.sim-btn-sms {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* Refresh section */
.sim-refresh-section { margin-top: 2.5rem; text-align: center; }
.sim-btn-refresh {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.9);
    color: #fff;
    border-radius: 40px;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255,255,255,0.2);
}

/* Mobile adaptations */
@media(max-width: 650px) {
    .mode-cards, .room-grid { grid-template-columns: 1fr; }
    .sim-pro-container { padding: 1.5rem; }
    .result-box { padding: 1.5rem; }
    .result-price { font-size: 2.5rem; }
    .sim-nav { flex-direction: column-reverse; gap: 1rem; }
    .sim-pro-container .btn { width: 100%; }
    .sim-form-grid { grid-template-columns: 1fr; }
}
