/* ================================================
   CUSTOM MODAL STYLES - PARADISO INTEGRATION
   Sobrescreve o design padrão para seguir o visual do site
   ================================================ */

/* Override modal base styles */
.modal {
    border: none;
    padding: 0;
    width: min(550px, 96vw);
    background: transparent;
    max-width: 550px;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.modal-card {
    background: #fdfbf7;
    color: #2D4230;
    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 40px 30px 25px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
}

/* Header customization */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 20px 0;
    border-bottom: 2px solid #3C6446;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2D4230;
    font-family: 'Nohemi', sans-serif;
}

/* Close button */
.btn-close {
    border: none;
    background: transparent;
    color: #2D4230;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    position: absolute;
    top: 15px;
    right: 15px;
    line-height: 1;
}

.btn-close:hover {
    background: rgba(60, 100, 70, 0.1);
    transform: rotate(90deg);
}

/* Modal body */
.modal-body {
    padding: 0;
    color: #2D4230;
    line-height: 1.6;
    text-align: left;
}

/* Lot info section */
.lot-info {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(60, 100, 70, 0.08), rgba(60, 100, 70, 0.02));
    border-radius: 16px;
    border: 1px solid rgba(60, 100, 70, 0.15);
}

.lot-info h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #3C6446;
    font-family: 'Nohemi', sans-serif;
}

.lot-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.lot-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2D4230;
    font-weight: 500;
}

.lot-spec-item i {
    color: #3C6446;
    font-size: 16px;
}

/* Payment options section */
.pay-prompt {
    color: #2D4230;
    margin: 25px 0 15px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Nohemi', sans-serif;
    text-align: center;
}

.pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.pay-card {
    border: 2px solid #E8DCCB;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    background: #ffffff;
    color: #2D4230;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.pay-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3C6446, #587759);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.pay-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(60, 100, 70, 0.15);
}

.pay-card.selected {
    border-color: #3C6446;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(60, 100, 70, 0.2);
}

.pay-card .title {
    font-weight: 700;
    font-size: 14px;
    color: #2D4230;
    margin-bottom: 6px;
    display: block;
    font-family: 'Nohemi', sans-serif;
}

.pay-card .sub {
    display: block;
    font-size: 11px;
    color: #5A3D30;
    margin-bottom: 10px;
    opacity: 0.8;
    line-height: 1.3;
}

.pay-price {
    margin-top: 8px;
}

.pay-price div {
    margin: 3px 0;
}

.pay-price .original-price {
    font-size: 12px;
    color: #888;
    text-decoration: line-through;
}

.pay-price .final-price {
    font-size: 18px;
    font-weight: 700;
    color: #3C6446;
    font-family: 'Nohemi', sans-serif;
}

.pay-price .installment-info {
    font-size: 14px;
    color: #2D4230;
    margin-top: 12px;
    line-height: 1.5;
    font-weight: 500;
}

.pay-price .installment-value {
    font-weight: 700;
    color: #3C6446;
    font-size: 20px;
    display: block;
    margin-top: 6px;
    font-family: 'Nohemi', sans-serif;
}

/* Price Protection Overlay */
.price-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.price-protection-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.price-protection-content h3 {
    color: #2D4230;
    font-size: 22px;
    margin-bottom: 10px;
    font-family: 'Nohemi', sans-serif;
}

.price-protection-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.price-protection-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-protection-form input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.price-protection-form input:focus {
    outline: none;
    border-color: #3C6446;
}

.price-protection-form button {
    padding: 14px 20px;
    background: linear-gradient(135deg, #3C6446, #2D4230);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-protection-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 100, 70, 0.3);
}

.price-protection-form button:active {
    transform: translateY(0);
}

.prices-blurred .pay-grid {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.modal-body {
    position: relative;
}

/* Modal has no footer or buttons - all removed */

/* FAQ Modal customization */
#faq-modal .modal-card {
    max-height: 85vh;
}

#faq-modal .modal-body {
    max-height: calc(85vh - 150px);
    overflow-y: auto;
}

.faq-item {
    border: 2px solid #E8DCCB;
    border-radius: 12px;
    margin: 12px 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #ffffff;
    color: #2D4230;
    font-weight: 600;
    transition: all 0.3s;
}

.faq-question:hover {
    background: #F3EDE3;
}

.faq-item.open .faq-question {
    background: #3C6446;
    color: #ffffff;
}

.toggle-indicator {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s;
}

.toggle-indicator::before,
.toggle-indicator::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: all 0.3s;
}

.toggle-indicator::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.toggle-indicator::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
}

.faq-item.open .toggle-indicator::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    display: none;
    padding: 20px;
    background: #F3EDE3;
    color: #2D4230;
    line-height: 1.6;
}

.faq-answer p {
    margin: 8px 0;
}

.faq-answer ul {
    margin: 12px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin: 8px 0;
}

.faq-item .highlight {
    color: #3C6446;
    font-weight: 700;
}

.timeline, .example {
    background: rgba(60, 100, 70, 0.08);
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 10px;
    border-left: 4px solid #3C6446;
}

.section-title {
    color: #3C6446;
    font-size: 20px;
    font-weight: 700;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #E8DCCB;
    font-family: 'Nohemi', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal {
        width: 100vw;
        max-width: 100vw;
    }

    .modal-card {
        border-radius: 24px 24px 0 0;
        padding: 30px 20px 20px;
        max-height: 90vh;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .pay-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .pay-card {
        padding: 14px;
    }

    .pay-card .title {
        font-size: 13px;
    }

    .pay-card .sub {
        font-size: 10px;
    }

    .pay-price .final-price {
        font-size: 16px;
    }

    .pay-price .installment-info {
        font-size: 13px;
    }

    .pay-price .installment-value {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .pay-prompt {
        font-size: 14px;
    }

    .pay-grid {
        gap: 8px;
    }

    .pay-card {
        padding: 12px;
        border-radius: 10px;
    }

    .pay-card .title {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .pay-card .sub {
        font-size: 9px;
        margin-bottom: 8px;
    }

    .pay-price .original-price {
        font-size: 10px;
    }

    .pay-price .final-price {
        font-size: 15px;
    }

    .pay-price .installment-info {
        font-size: 10px;
        margin-top: 4px;
    }

    .pay-price .installment-value {
        font-size: 11px;
    }

    /* Price Protection Responsive */
    .price-protection-content {
        padding: 20px;
    }

    .price-protection-content h3 {
        font-size: 18px;
    }

    .price-protection-content p {
        font-size: 13px;
    }

    .price-protection-form input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .price-protection-form button {
        padding: 12px 18px;
        font-size: 15px;
    }
}
