/* ==========================================================================
   QUOTE MODAL (3 STEPS)
   ========================================================================== */

.quote-drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quote-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quote-drawer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    background-color: #fff;
    z-index: 2001;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.quote-drawer.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

/* HEADER & STEPS */
.drawer-header {
    background-color: var(--dark);
    color: var(--white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 1px;
}

.close-drawer {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-drawer:hover {
    color: var(--yellow);
}

.modal-steps {
    display: flex;
    background-color: var(--dark);
    padding: 0 30px 20px;
}

.step-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 0.85rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.step-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 20px;
    height: 2px;
    background-color: #444;
}

.step-item.active {
    color: var(--yellow);
}

.step-item.active::after {
    background-color: var(--yellow);
}

.step-item.completed {
    color: var(--white);
}

.step-item.completed::after {
    background-color: var(--yellow);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #888;
    font-size: 0.75rem;
}

.step-item.active .step-num {
    background-color: var(--yellow);
    color: var(--dark);
    border-color: var(--yellow);
}

.step-item.completed .step-num {
    border-color: var(--yellow);
    color: var(--yellow);
}

/* BODY & LAYOUT */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    background-color: #fff;
}

.step-content {
    display: none;
    padding: 30px;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.modal-row {
    display: flex;
    gap: 40px;
}

.modal-col-left {
    flex: 1.5;
}

.modal-col-right {
    flex: 1;
}

/* TABS */
.drawer-tabs {
    display: flex;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 25px;
}

.drawer-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.drawer-tab.active {
    background-color: #fff;
    color: var(--dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* FORM STYLES */
#quoteForm .form-row {
    display: flex;
    gap: 20px;
}
#quoteForm .form-row .form-group {
    flex: 1;
}

#quoteForm .form-group {
    margin-bottom: 18px;
}

#quoteForm label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
}

#quoteForm input,
#quoteForm textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #fff;
    color: #1A1A1A;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

#quoteForm input:focus,
#quoteForm textarea:focus {
    border-color: var(--yellow);
}

.arriendo-extra-fields {
    background-color: #fffbe6;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--yellow);
    margin-bottom: 18px;
}

.duration-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #b28312;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* SUMMARY CARD (STEP 1) */
.summary-card {
    background-color: #f5f5f5;
    padding: 25px;
    border-radius: 12px;
    height: 100%;
}

.s-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.s-img img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.s-cat {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

#dProductName {
    font-size: 1.2rem;
    color: var(--dark);
    margin: 5px 0 10px;
}

.s-badge {
    display: inline-block;
    background-color: var(--yellow);
    color: var(--dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
}

.s-divider {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 20px 0;
}

.s-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

/* REVIEW STEP (STEP 2) */
.step-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.step-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.review-box {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 25px;
}

.rb-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rb-label {
    display: block;
    font-size: 0.65rem;
    color: #888;
    font-weight: 700;
    margin-bottom: 5px;
}

.rb-value {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
}

.rb-arriendo-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.cost-card {
    background-color: var(--dark);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    height: 100%;
}

.cc-label {
    font-size: 0.65rem;
    color: #aaa;
    letter-spacing: 1px;
    font-weight: 800;
}

.cc-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
}

.cc-val { font-weight: 700; }

.cc-iva { color: #aaa; }

.cc-divider {
    border: none;
    border-top: 1px solid #444;
    margin: 20px 0;
}

.cc-total-label {
    color: var(--yellow);
    font-size: 0.75rem;
    font-weight: 800;
}

.cc-total-val {
    font-size: 2rem;
    font-weight: 800;
    margin: 5px 0;
}

.cc-iva-included {
    font-size: 0.65rem;
    color: #aaa;
}

.cc-disclaimer {
    font-size: 0.65rem;
    color: #888;
    text-align: center;
    margin-top: 20px;
}

/* BUTTONS */
.btn-primary {
    background-color: #FBBF24;
    color: var(--dark);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-primary:hover { background-color: #e5a913; }

.btn-submit-final {
    background-color: #FBBF24;
    color: var(--dark);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.btn-submit-final:hover {
    background-color: #e5a913;
}
.cost-card .btn-submit-final {
    width: 100%;
    margin-bottom: 15px;
}
.cost-card .btn-pdf-ghost {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-pdf-ghost {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-pdf-ghost:hover {
    color: var(--yellow);
    border-color: var(--yellow);
}

.btn-pdf-outline {
    background-color: #fff;
    color: var(--dark);
    border: 1px solid #ddd;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-pdf-outline:hover { background-color: #f5f5f5; }

.drawer-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    margin-top: 20px;
}

.drawer-footer.centered {
    justify-content: center;
}

.btn-cancel {
    background: transparent;
    border: 1px solid #ddd;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.btn-submit-drawer {
    background-color: var(--yellow);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.btn-link {
    background: transparent;
    border: none;
    color: #666;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-link:hover { color: var(--dark); }

/* SUCCESS STEP (STEP 3) */
.text-center {
    text-align: center;
}
.success-icon {
    font-size: 60px;
    color: #25D366; /* Green */
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
}
.success-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 15px;
}
.success-desc {
    color: #666;
    max-width: 500px;
    margin: 0 auto 10px;
    line-height: 1.6;
}
.success-folio {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 700;
    margin-bottom: 40px;
}
.success-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* RESPONSIVE */
@media (max-width: 800px) {
    .modal-row { flex-direction: column; gap: 20px; }
    .quote-drawer { max-height: 95vh; }
    .success-actions { flex-direction: column; }
}
