/* ============================================
   Pricing Section - COMPACT VERSION
   ============================================ */

.pricing-section {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pricing-header h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Price Display - Horizontal Compact */
.main-price-display {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--white);
}

.price-info {
    flex: 1;
}

.price-label-main {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.price-currency {
    font-size: 1.2rem;
    margin-right: 5px;
}

.down-payment-info {
    text-align: left;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    padding-right: 20px;
}

.down-payment-label {
    font-size: 0.85rem;
    opacity: 0.8;
    display: block;
}

.down-payment-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Payment Plans - Compact Table */
.payment-plans-title {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.payment-plan-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.plan-item-compact {
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s;
}

.plan-item-compact:hover {
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(193, 122, 74, 0.15);
}

.plan-item-compact.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fffbf8 0%, #fff5ed 100%);
}

.plan-label {
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.plan-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.plan-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

/* Download Section - Compact */
.download-brochure-section {
    background: linear-gradient(135deg, #fffbf8 0%, #fff5ed 100%);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.download-brochure-section h4 {
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.download-brochure-section p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
}

/* Download Button - Smaller */
.btn-download-brochure {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download-brochure:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 122, 74, 0.3);
}

.btn-download-brochure i {
    font-size: 1.1rem;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .pricing-section {
        padding: 20px 15px;
    }

    .main-price-display {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .down-payment-info {
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-right: 0;
        padding-top: 12px;
        margin-top: 12px;
    }

    .price-amount {
        font-size: 1.6rem;
    }

    .down-payment-value {
        font-size: 1.4rem;
    }

    .payment-plan-compact {
        grid-template-columns: 1fr;
    }

    .btn-download-brochure {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Download Popup Modal
   ============================================ */

.download-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.download-popup-overlay.active {
    display: flex;
}

.download-popup {
    background: var(--white);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 25px;
    border-radius: 20px 20px 0 0;
    position: relative;
    text-align: center;
}

.popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-header h3 {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.popup-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.popup-body {
    padding: 30px;
}

.popup-form-group {
    margin-bottom: 20px;
}

.popup-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.popup-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.popup-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(193, 122, 74, 0.1);
}

.popup-submit-btn {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.popup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 122, 74, 0.3);
}

.popup-privacy-note {
    text-align: center;
    color: #777;
    font-size: 0.85rem;
    margin-top: 15px;
}

.popup-privacy-note i {
    margin-left: 5px;
    color: var(--primary-color);
}

.popup-loading {
    display: none;
    text-align: center;
    padding: 30px;
}

.popup-loading.active {
    display: block;
}

.popup-form-data.hidden {
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}