/* ==========================================================================
   Stiluri Generale și Structură Pagina Rate/Credit Vivateh
   ========================================================================== */
.credit-page-container {
    font-family: 'Open Sans', Arial, sans-serif;
    max-width: 1300px;
    margin: 0 auto;
    color: #333333;
    line-height: 1.6;
    padding: 20px;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* --- Hero Section --- */
.credit-hero {
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.credit-hero .badge-promo {
    background: #fd7e14;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.credit-hero h1 {
    color: #084f82;
    font-size: 38px;
    font-weight: 800;
    margin: 15px 0 10px 0;
    line-height: 1.2;
}

.credit-hero p {
    font-size: 16px;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
}

.credit-hero .divider {
    width: 80px;
    height: 5px;
    background-color: #fd7e14;
    margin: 25px auto 0 auto;
    border-radius: 3px;
}

/* --- Secțiuni și Titluri --- */
.credit-section-title {
    color: #084f82;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
}

.credit-section-subtitle {
    font-size: 15px;
    color: #64748b;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 40px auto;
}

/* --- Carduri Modalități Finanțare --- */
.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.option-card {
    flex: 1 1 340px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 35px 30px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-sizing: border-box;
}

.option-card.featured {
    border-color: #fd7e14;
    box-shadow: 0 10px 20px -5px rgba(253,126,20,0.1);
}

.option-card .badge-recommended {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #084f82;
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.card-icon-container {
    text-align: center;
    margin-bottom: 15px;
}

.card-icon-container img {
    width: 90px;
    height: auto;
    vertical-align: middle;
}

.option-card h3 {
    color: #084f82;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-align: center;
}

.option-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 25px;
    text-align: justify;
    line-height: 1.5;
}

.badge-period-orange {
    background: #fff7ed;
    color: #c2410c;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    font-size: 15px;
    border: 1px solid #ffedd5;
    margin-bottom: 10px;
}

.badge-period-blue {
    background: #eff6ff;
    color: #1e40af;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    font-size: 15px;
    border: 1px solid #bfdbfe;
    margin-bottom: 10px;
}

.card-footer-action {
    text-align: center;
}

/* --- Simulator de Rate --- */
.calculator-container {
    margin-bottom: 60px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
}

.calculator-container h3 {
    color: #084f82;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

.calculator-container .calc-intro {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.calculator-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    align-items: flex-end;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-group.flex-large { flex: 2 1 300px; }
.calc-group.flex-small { flex: 1 1 200px; }

.calc-group label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 16px;
    font-weight: 700;
    color: #084f82;
    background-color: #ffffff;
    width: 100%;
    outline: none;
    box-sizing: border-box;
    padding-right: 60px;
    height: 48px;
}

.input-wrapper .unit {
    position: absolute;
    right: 15px;
    font-weight: 700;
    color: #64748b;
    font-size: 14px;
}

.calc-group select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #334155;
    background-color: #f8fafc;
    cursor: pointer;
    outline: none;
    height: 48px;
    width: 100%;
    box-sizing: border-box;
}

.result-display {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    height: 48px;
    box-sizing: border-box;
    width: 100%;
}

.result-display span {
    font-size: 18px;
    font-weight: 800;
    color: #16a34a;
}

.table-wrapper {
    overflow-x: auto;
}

.calc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.calc-table thead tr {
    background-color: #084f82;
    color: #ffffff;
}

.calc-table th {
    padding: 15px 20px;
    font-weight: 600;
}

.calc-table th.highlight-th {
    color: #fd7e14;
}

.calc-note {
    margin: 15px 0 0 0;
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
}

/* --- Parteneri Oficiali --- */
.partners-container {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 45px 35px;
    margin-bottom: 60px;
    border: 1px solid #e2e8f0;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-card {
    flex: 1 1 450px;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
    border-left: 5px solid #084f82;
    box-sizing: border-box;
}

.partner-card h3 {
    color: #084f82;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.partner-card h3 img {
    width: 90px;
    height: auto;
    vertical-align: middle;
}

.partner-card p {
    font-size: 14px;
    color: #4a5568;
    text-align: justify;
    margin-bottom: 15px;
}

.partner-card ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.partner-card ul li {
    margin-bottom: 8px;
}

/* --- Criterii Eligibilitate --- */
.eligibility-container {
    margin-bottom: 60px;
    padding: 0 10px;
}

.eligibility-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.eligibility-item {
    flex: 1 1 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px 20px;
    box-sizing: border-box;
}

.eligibility-item .icon-wrapper {
    font-size: 30px;
    margin-bottom: 10px;
}

.eligibility-item .icon-wrapper img {
    width: 140px;
    height: auto;
    vertical-align: middle;
}

.eligibility-item h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #084f82;
    font-weight: 700;
}

.eligibility-item p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* --- Pași Achiziție --- */
.steps-container {
    background: #084f82;
    border-radius: 16px;
    padding: 45px 35px;
    margin-bottom: 60px;
    color: #ffffff;
}

.steps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.step-item {
    flex: 1 1 250px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 25px;
    position: relative;
    box-sizing: border-box;
}

.step-item .step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #fd7e14;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-item h4 {
    margin: 10px 0 8px 0;
    font-size: 17px;
    color: #ffffff;
    font-weight: 600;
}

.step-item p {
    margin: 0;
    font-size: 13px;
    color: #e2e8f0;
    text-align: justify;
}

/* --- FAQ --- */
.faq-container {
    margin-bottom: 60px;
}

.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.faq-item h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #084f82;
    font-weight: 700;
}

.faq-item p {
    margin: 0;
    font-size: 13px;
    color: #4a5568;
    text-align: justify;
}

/* --- Call To Action (CTA) --- */
.cta-credit {
    background: linear-gradient(135deg, #084f82 0%, #002d62 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 45px 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(8,79,130,0.25);
}

.cta-credit h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.cta-credit p {
    margin: 0 0 30px 0;
    font-size: 15px;
    color: #e2e8f0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-credit-buton {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Buton Telefon --- */

.cta-buton-suna,
.cta-buton-suna:hover,
.cta-buton-suna:focus,
.cta-buton-suna:active {
    text-decoration: none !important;
}

.cta-buton-suna {
    background: #fd7e14;
    color: #ffffff !important;
    padding: 14px 35px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.4);
}

.cta-buton-suna:hover {
    background: #e06d10;
    transform: translateY(-2px);
}

/* --- Număr Telefon --- */

.telefon-highlight {
    color: #000000;
    font-weight: 700;
    text-decoration: none !important;
}
/* ==========================================================================
   MEDIA QUERIES (Ajustare automată pentru varianta Mobilă și Tabletă)
   ========================================================================== */

@media (max-width: 768px) {
    .credit-page-container {
        padding: 10px;
    }
    
    .credit-hero {
        padding: 40px 15px;
        margin-bottom: 35px;
    }

    .credit-hero h1 {
        font-size: 26px;
    }

    .credit-hero p {
        font-size: 14px;
    }

    .credit-section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .options-grid, .partners-grid, .eligibility-grid, .steps-grid {
        gap: 20px;
    }

    .option-card {
        padding: 25px 20px;
    }

    .calculator-container {
        padding: 25px 15px;
    }

    .calculator-fields {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
    }

    .calc-group.flex-large, .calc-group.flex-small {
        flex: 1 1 auto;
    }

    /* Ajustare tabel pe mobil pentru a nu strica layout-ul */
    .calc-table th, .calc-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .partner-card {
        padding: 20px;
    }

    .steps-container, .partners-container {
        padding: 30px 15px;
    }
    
    .step-item {
        padding: 25px 15px 15px 15px;
    }

    .cta-credit {
        padding: 35px 15px;
    }

    .cta-buton-suna {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .credit-hero h1 {
        font-size: 22px;
    }
    
    .option-card h3 {
        font-size: 19px;
    }
    
    .calc-table th, .calc-table td {
        padding: 8px;
        font-size: 12px;
    }
}