/* ===================================
   Turnero IMOWI — MiCuenta palette
   Navy: #1B3A5C  Accent: #2E86C1
   Light bg: #F0F2F5  Cards: #FFFFFF
   =================================== */

/* Fonts */
.poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
}
.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}
.poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
}
.poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}
.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
}
.poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
}

/* Hide number input arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* ---- Layout ---- */
body {
    background-color: #F0F2F5;
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    color: #333;
}

.main-wrapper {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- Header ---- */
.header {
    background: #1B3A5C;
    padding: 20px 0 28px;
    text-align: center;
    position: relative;
}

.header-logo {
    height: 36px;
    margin-bottom: 6px;
}

.header-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 400;
    margin: 2px 0 0;
}

/* ---- Step indicators ---- */
.steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -16px auto 24px;
    position: relative;
    z-index: 1;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    border: 2px solid #D5DBE1;
    background: #fff;
    color: #A0AEC0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.step-indicator.active {
    background: #2E86C1;
    color: #fff;
    border-color: #2E86C1;
    box-shadow: 0 2px 8px rgba(46, 134, 193, 0.35);
}

.step-indicator.completed {
    background: #1B3A5C;
    color: #fff;
    border-color: #1B3A5C;
}

.step-line {
    width: 48px;
    height: 2px;
    background: #D5DBE1;
    margin: 0 8px;
    transition: background 0.3s ease;
}

.step-line.completed {
    background: #1B3A5C;
}

/* ---- Cards ---- */
.card-section {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.card-section h2 {
    color: #1B3A5C;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.card-section .section-desc {
    color: #7A8A9E;
    font-size: 0.82rem;
    margin-bottom: 20px;
}

/* ---- Form inputs ---- */
.form-control, .form-select {
    border: 1px solid #D5DBE1;
    border-radius: 8px;
    background: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    padding: 12px 14px;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #2E86C1;
    box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.12);
}

.form-floating > label {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    color: #7A8A9E;
}

/* ---- Buttons ---- */
.btn-primary-navy {
    background: #1B3A5C;
    border: none;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 11px 28px;
    border-radius: 8px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-navy:hover {
    background: #15304D;
    color: #fff;
    box-shadow: 0 2px 8px rgba(27, 58, 92, 0.25);
}

.btn-primary-navy:disabled {
    background: #A0AEC0;
}

.btn-outline-navy {
    background: transparent;
    border: 1.5px solid #1B3A5C;
    color: #1B3A5C;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-outline-navy:hover {
    background: #1B3A5C;
    color: #fff;
}

.btn-accent {
    background: #2E86C1;
    border: none;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 32px;
    border-radius: 8px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-accent:hover {
    background: #2474A8;
    color: #fff;
    box-shadow: 0 2px 10px rgba(46, 134, 193, 0.3);
}

.btn-accent:disabled {
    background: #A0AEC0;
}

/* ---- Area selection cards ---- */
.area-card {
    cursor: pointer;
    border: 2px solid #E8ECF0;
    border-radius: 10px;
    background: #FAFBFC;
    transition: all 0.2s ease;
    padding: 16px 8px;
    text-align: center;
    height: 100%;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.area-card:hover {
    border-color: #2E86C1;
    background: #F0F7FC;
    box-shadow: 0 2px 8px rgba(46, 134, 193, 0.1);
}

.area-card.selected {
    border-color: #1B3A5C;
    background: #EBF0F5;
    box-shadow: 0 2px 8px rgba(27, 58, 92, 0.12);
}

.area-card .area-icon {
    font-size: 1.6rem;
    color: #2E86C1;
    margin-bottom: 4px;
}

.area-card.selected .area-icon {
    color: #1B3A5C;
}

.area-card .area-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1B3A5C;
}

/* ---- Priority pills ---- */
.priority-option {
    cursor: pointer;
    border: 1.5px solid #D5DBE1;
    border-radius: 20px;
    padding: 6px 16px;
    background: #FAFBFC;
    transition: all 0.2s ease;
    display: inline-block;
    margin: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
}

.priority-option:hover {
    border-color: #2E86C1;
    color: #2E86C1;
}

.priority-option.selected {
    border-color: #1B3A5C;
    background: #EBF0F5;
    color: #1B3A5C;
    font-weight: 600;
}

/* ---- Section labels inside step 2 ---- */
.subsection-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1B3A5C;
    margin-bottom: 8px;
}

.subsection-optional {
    font-weight: 400;
    color: #A0AEC0;
    font-size: 0.78rem;
}

/* ---- WhatsApp checkbox ---- */
.form-check-input:checked {
    background-color: #1B3A5C;
    border-color: #1B3A5C;
}

.form-check-label {
    font-size: 0.82rem;
    color: #555;
}

/* ---- Divider ---- */
.section-divider {
    border: none;
    border-top: 1px solid #E8ECF0;
    margin: 20px 0;
}

/* ---- Confirmation screen ---- */
.confirmation-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.turn-number-display {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1B3A5C;
    line-height: 1;
    margin: 8px 0;
}

.turn-area-badge {
    display: inline-block;
    background: #EBF0F5;
    color: #1B3A5C;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}

.wait-info-box {
    background: #F0F7FC;
    border: 1px solid #D0E4F2;
    border-radius: 8px;
    padding: 12px 16px;
    color: #2E86C1;
    font-size: 0.82rem;
}

.wait-info-box i {
    color: #2E86C1;
}

.suggestion-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #E8ECF0;
    color: #1B3A5C;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.suggestion-link:hover {
    border-color: #2E86C1;
    background: #F0F7FC;
    color: #1B3A5C;
}

.suggestion-link i {
    color: #2E86C1;
    font-size: 1.1rem;
}

/* ---- Error / geo block screen ---- */
.error-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.error-card .error-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.error-card .error-icon.geo {
    background: #FDE8EC;
    color: #C0392B;
}

.error-card .error-icon.schedule {
    background: #FEF3E2;
    color: #D4850A;
}

.error-card h2 {
    font-size: 1.05rem;
    color: #1B3A5C;
    margin-bottom: 8px;
}

.error-card p {
    color: #7A8A9E;
    font-size: 0.85rem;
    max-width: 320px;
    margin: 0 auto;
}

/* ---- Alerts ---- */
.alert-client-found {
    background: #E8F6EF;
    border: 1px solid #C3E6D5;
    color: #1A6B42;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 10px 14px;
}

.alert-client-notfound {
    background: #FEF8EC;
    border: 1px solid #F5E6B8;
    color: #8A6D12;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 10px 14px;
}

/* ---- Spinner ---- */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 58, 92, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ---- Footer ---- */
.footer-brand {
    text-align: center;
    padding: 24px 0 32px;
    opacity: 0.4;
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
    .main-wrapper {
        padding: 0 12px;
    }

    .card-section {
        padding: 22px 18px;
    }

    .turn-number-display {
        font-size: 2.8rem;
    }

    .area-card {
        padding: 12px 8px;
    }

    .area-card .area-icon {
        font-size: 1.3rem;
    }
}