/* ================================================================
   Hypotéka Kalkulátor – Frontend Styles v2.0
   Font: Inter Tight | Primary: #003567 | CTA: #FFC300 | Text: #424242
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&display=swap');

/* ----------------------------------------------------------------
   Base wrapper
   ---------------------------------------------------------------- */
.hk-wrap {
    font-family: 'Inter Tight', sans-serif;
    color: #424242;
    background: #fff;
    border-radius: 20px;
    padding: 3rem 3rem 2.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0 0 2rem;
    box-shadow: 0 4px 32px rgba(0,53,103,.10);
    box-sizing: border-box;
}

/* ----------------------------------------------------------------
   Header
   ---------------------------------------------------------------- */
.hk-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #003567;
    margin: 0 0 .5rem;
    line-height: 1.2;
}
.hk-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 2.5rem;
}

/* ----------------------------------------------------------------
   Slider rows
   ---------------------------------------------------------------- */
.hk-slider-row {
    margin-bottom: 1.8rem;
}
.hk-slider-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .6rem;
}
.hk-slider-label {
    font-size: .95rem;
    font-weight: 500;
    color: #424242;
}
.hk-slider-display {
    font-size: 1.05rem;
    font-weight: 700;
    color: #003567;
    background: #f0f5fb;
    padding: 4px 14px;
    border-radius: 30px;
    min-width: 100px;
    text-align: center;
}

/* Range track */
input[type="range"].hk-slider {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #dce8f5;
    outline: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    border: none;
}
input[type="range"].hk-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #003567;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,53,103,.35);
}
input[type="range"].hk-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #003567;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,53,103,.35);
}
input[type="range"].hk-slider::-moz-range-track {
    background: #dce8f5;
    height: 5px;
    border-radius: 3px;
}

/* ----------------------------------------------------------------
   Contact fields / form grid
   ---------------------------------------------------------------- */
.hk-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.hk-contact-grid {
    margin-top: 1.8rem;
}
.hk-field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #003567;
    margin-bottom: .35rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.hk-req { color: #e53935; }

.hk-input {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid #dce8f5;
    border-radius: 12px;
    font-size: .97rem;
    font-family: 'Inter Tight', sans-serif;
    color: #424242;
    background: #f8fbff;
    box-sizing: border-box;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}
.hk-input::placeholder { color: #b0bec5; }
.hk-input:focus {
    border-color: #003567;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,53,103,.10);
}

/* Radio */
.hk-radio-group {
    display: flex;
    gap: 1.2rem;
    margin-top: .35rem;
    flex-wrap: wrap;
}
.hk-radio {
    display: flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 500;
    color: #424242;
}
.hk-radio input[type="radio"] {
    accent-color: #003567;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* GDPR */
.hk-gdpr-row {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: 1.4rem;
    font-size: .82rem;
    color: #6b7280;
    line-height: 1.55;
}
.hk-gdpr-row input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #003567;
    width: 17px;
    height: 17px;
    cursor: pointer;
}
.hk-gdpr-row a {
    color: #003567;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.hk-btn-primary {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: #FFC300;
    color: #003567;
    text-align: center;
    letter-spacing: .01em;
    transition: background .15s, transform .1s, box-shadow .15s;
}
.hk-btn-primary:hover {
    background: #e6b000;
    
}
.hk-btn-primary:active { transform: scale(.99); }
.hk-btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.hk-btn-secondary {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #003567;
    background: transparent;
    color: #003567;
    text-align: center;
    margin-top: .75rem;
    transition: background .15s, color .15s;
}
.hk-btn-secondary:hover {
    background: #003567;
    color: #fff;
}

/* Success bar */
.hk-success {
    background: linear-gradient(135deg, #003567, #0057a8);
    color: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: .95rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: .85rem;
}

/* ----------------------------------------------------------------
   Divider between form and results
   ---------------------------------------------------------------- */
.hk-results {
    margin-top: 3rem;
    border-top: 1.5px solid #e8f0f9;
    padding-top: 2.5rem;
}

/* ----------------------------------------------------------------
   Results header
   ---------------------------------------------------------------- */
.hk-results-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: #003567;
    margin: 0 0 .6rem;
}
.hk-results-sub {
    text-align: center;
    color: #6b7280;
    font-size: .92rem;
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto 2rem;
}

/* ----------------------------------------------------------------
   Bank card grid — 4 col → 2 col → 1 col
   ---------------------------------------------------------------- */
.hk-banks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 1.5rem;
}

.hk-bank-card {
    background: #fff;
    border: 1.5px solid #e8f0f9;
    border-radius: 16px;
    padding: 1.4rem 1rem;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}
.hk-bank-card:hover {
    box-shadow: 0 6px 24px rgba(0,53,103,.12);
    transform: translateY(-2px);
}
/* First card = best deal highlight */
.hk-bank-card:first-child {
    border-color: #FFC300;
    box-shadow: 0 4px 20px rgba(255,195,0,.2);
}

.hk-bank-logo-wrap {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .8rem;
}
.hk-bank-logo-wrap img {
    max-height: 46px;
    max-width: 100%;
    object-fit: contain;
}
.hk-bank-logo-name {
    font-size: .78rem;
    font-weight: 700;
    color: #003567;
    line-height: 1.3;
}

.hk-bank-rate-num {
    font-size: 1.55rem;
    font-weight: 700;
    color: #003567;
    margin: .4rem 0 .1rem;
}
.hk-bank-rate-lbl { font-size: .7rem; color: #9ca3af; letter-spacing: .02em; }
.hk-bank-divider  { border: none; border-top: 1px solid #e8f0f9; margin: .75rem 0; }
.hk-bank-pay-num  { font-size: 1.05rem; font-weight: 700; color: #424242; }
.hk-bank-pay-lbl  { font-size: .7rem; color: #9ca3af; letter-spacing: .02em; }

/* ----------------------------------------------------------------
   Single-value result cards  (splátka, príjem…)
   Centered when 2 or 3 cards — never stretch to full width
   ---------------------------------------------------------------- */
.hk-result-cards-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 1.4rem;
}

/* Each card has a fixed comfortable width — they sit centered */
.hk-result-card {
    flex: 0 1 220px;            /* won't grow wider than needed */
    min-width: 180px;
    background: #f0f5fb;
    border: 1.5px solid #dce8f5;
    border-radius: 16px;
    padding: 1.6rem 1.2rem;
    text-align: center;
}

.hk-result-label {
    font-size: .78rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 .55rem;
}
.hk-result-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: #003567;
    margin: 0;
}

/* ----------------------------------------------------------------
   Disclaimer
   ---------------------------------------------------------------- */
.hk-disclaimer {
    font-size: .72rem;
    color: #b0bec5;
    line-height: 1.75;
    margin-top: 1.2rem;
    text-align: center;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 960px) {
    .hk-banks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hk-wrap { padding: 2rem 1.2rem; }
    .hk-title { font-size: 1.5rem; }
    .hk-form-grid { grid-template-columns: 1fr; }
    .hk-banks-grid { grid-template-columns: 1fr 1fr; }
    .hk-result-card { flex: 0 1 100%; }
}

/* ----------------------------------------------------------------
   Contact section divider
   ---------------------------------------------------------------- */
.hk-contact-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.2rem;
    color: #003567;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.hk-contact-divider::before,
.hk-contact-divider::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: #dce8f5;
}

/* Full-width field inside grid */
.hk-form-grid .hk-field-full {
    grid-column: 1 / -1;
}

/* ================================================================
   Investičná / Sporenie — risk profile cards
   ================================================================ */
.hk-risk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 1.5rem;
}

.hk-risk-card {
    background: #fff;
    border: 1.5px solid #e8f0f9;
    border-radius: 16px;
    padding: 1.8rem 1.2rem 1.4rem;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}
.hk-risk-card:hover {
    box-shadow: 0 6px 24px rgba(0,53,103,.10);
    transform: translateY(-2px);
}
.hk-risk-card--mid {
    border-color: #003567;
    box-shadow: 0 4px 20px rgba(0,53,103,.12);
}

.hk-risk-badge {
    display: inline-block;
    padding: 4px 18px;
    border-radius: 30px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 1rem;
    color: #fff;
}
.hk-badge-konz { background: #003567; }
.hk-badge-vyv  { background: #003567; }
.hk-badge-dyn  { background: #003567; }

.hk-risk-card .hk-result-amount {
    font-size: 1.5rem;
    margin: .3rem 0 .2rem;
}
.hk-risk-card .hk-result-label {
    font-size: .75rem;
    color: #9ca3af;
    margin: 0 0 .5rem;
}
.hk-risk-invested {
    font-size: 1.15rem;
    font-weight: 700;
    color: #424242;
    margin: .3rem 0 .2rem;
}

@media (max-width: 640px) {
    .hk-risk-grid { grid-template-columns: 1fr; }
}

.hk-slider-val-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Editable number beside slider */
.hk-slider-num {
    width: 90px;
    padding: 5px 10px;
    border: 1.5px solid #dce8f5;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    font-family: 'Inter Tight', sans-serif;
    color: #003567;
    background: #f0f5fb;
    text-align: right;
    box-sizing: border-box;
    -moz-appearance: textfield;
    transition: border-color .15s, box-shadow .15s;
}
.hk-slider-num::-webkit-inner-spin-button,
.hk-slider-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.hk-slider-num:focus {
    outline: none;
    border-color: #003567;
    box-shadow: 0 0 0 3px rgba(0,53,103,.10);
    background: #fff;
}

.hk-slider-unit {
    font-size: .85rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}
/* ================================================================
   CTA blok po výsledkoch
   ================================================================ */
.hk-cta-block {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, #003567 0%, #0057a8 100%);
    border-radius: 16px;
    padding: 2.2rem 2rem;
    text-align: center;
    color: #fff;
}
.hk-cta-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .7rem;
}
.hk-cta-text {
    font-size: .95rem;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 1.5rem;
}
.hk-cta-btn {
    display: inline-block;
    background: #FFC300;
    color: #003567;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 13px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(255,195,0,.35);
}
.hk-cta-btn:hover {
    background: #e6b000;
    color: #003567;
    box-shadow: 0 6px 20px rgba(255,195,0,.5);
    transform: translateY(-1px);
}
