/* ─── Prověření Rentivo Styles ─── */
:root {
    --brand-dark: #0C314A;
    --brand-teal: #0EBFC1;
    --brand-teal-dark: #0a9a9c;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --success: #2e7d32;
    --warning: #856404;
    --danger: #dc3545;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Raleway', 'Inter', -apple-system, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: #fff;
}

a { color: var(--brand-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Header ─── */
.site-header {
    background: var(--brand-dark);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header .logo:hover { text-decoration: none; }

.site-header nav a {
    color: rgba(255,255,255,0.8);
    margin-left: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.site-header nav a:hover { color: #fff; text-decoration: none; }

/* ─── Hero ─── */
.hero {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 6rem 2rem 5rem;
    overflow: hidden;
    background: var(--brand-dark);
}

.hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero .hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h1 span { color: var(--brand-teal); }

.hero p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--brand-teal);
    color: #fff;
    border-color: var(--brand-teal);
}

.btn-primary:hover { background: var(--brand-teal-dark); border-color: var(--brand-teal-dark); }

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── Pricing ─── */
.pricing-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.pricing-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--brand-dark);
}

.pricing-section .subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-card.featured { border-color: var(--brand-teal); }

.pricing-card.featured::before {
    content: 'Doporučujeme';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-teal);
    color: #fff;
    padding: 2px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--brand-dark); }

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-teal);
    margin: 1rem 0 0.5rem;
}

.pricing-card .price small { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.pricing-card ul li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pricing-card ul li::before { content: '✅'; flex-shrink: 0; }

/* ─── Features ─── */
.features-section {
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--brand-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-card .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--brand-dark); }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* ─── Wizard ─── */
.wizard-container {
    width: 100%;
    max-width: 640px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.wizard-card {
    width: 100%;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: visible;
}

.wizard-header {
    background: var(--brand-dark);
    color: #fff;
    padding: 1rem 1rem 1rem 0.75rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.wizard-header h2 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.wizard-header p { opacity: 0.8; font-size: 0.9rem; }

.wizard-steps {
    display: flex;
    padding: 1rem 2rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.wizard-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0.5rem;
}

.wizard-step::after {
    content: '';
    position: absolute;
    top: 19px;
    right: -50%;
    width: 100%;
    height: 3px;
    background: #E9EBF8;
    z-index: 0;
}

.wizard-step.completed::after { background: var(--brand-teal); }
.wizard-step:last-child::after { display: none; }

.wizard-step-number {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    position: relative;
    z-index: 1;
}

.wizard-step-title {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.wizard-step.active .wizard-step-number { border-color: var(--brand-teal); background: var(--brand-teal); color: #fff; }
.wizard-step.active .wizard-step-title { color: var(--brand-dark); font-weight: 700; }
.wizard-step.completed .wizard-step-number { border-color: var(--brand-dark); background: var(--brand-dark); color: #fff; }

.wizard-body { padding: 2rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 500; font-size: 0.9rem; }
.form-group label .required { color: var(--danger); }

.form-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus { outline: none; border-color: var(--brand-teal); box-shadow: 0 0 0 3px rgba(14,191,193,0.15); }

.form-radio-group { display: flex; gap: 1rem; }

.form-radio {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}

.form-radio.selected { border-color: var(--brand-teal); background: rgba(14,191,193,0.05); }
.form-radio .price-tag { font-size: 1.5rem; font-weight: 700; color: var(--brand-teal); }

.wizard-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* ─── Results ─── */
.results-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.result-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.result-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-ok { background: #e8f5e9; color: var(--success); border: 1px solid #a5d6a7; }
.status-warning { background: #fff3cd; color: var(--warning); border: 1px solid #ffc107; }
.status-danger { background: #f8d7da; color: var(--danger); border: 1px solid #f5c6cb; }
.status-pending { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* ─── Alert ─── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.alert-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.alert-info { background: #e3f2fd; border: 1px solid #90caf9; color: #0c5460; }

/* ─── Footer ─── */
.site-footer {
    background: #000;
    color: #fff;
    padding: 32px 0 24px;
    font-size: 0.85rem;
}

.site-footer a { color: #fff; text-decoration: none; transition: color 0.3s; }
.site-footer a:hover { color: var(--brand-teal); }
.site-footer p { color: #fff; margin: 0; }

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand img { height: 28px; }

.footer-nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav ul li {
    display: inline-flex;
    align-items: center;
}

.footer-nav ul li + li::before {
    content: "·";
    margin: 0 10px;
    color: rgba(255,255,255,0.6);
}

.footer-bottom {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #ffffff;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom ul {
    display: flex;
    justify-content: end;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom ul li {
    display: inline-flex;
    align-items: center;
}

.footer-bottom ul li + li::before {
    content: "·";
    margin: 0 10px;
    color: rgba(255,255,255,0.6);
}

@media (max-width: 991px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .site-footer { padding: 28px 0 20px; }
    .footer-brand { flex-wrap: wrap; gap: 12px; }
    .footer-nav ul, .footer-bottom ul { row-gap: 8px; }
    .footer-bottom { align-items: flex-start; }
}

/* ─── Consent ─── */
.consent-group { margin: 1.5rem 0; }
.consent-group label { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; cursor: pointer; }
.consent-group input[type="checkbox"] { margin-top: 0.3rem; flex-shrink: 0; }

/* ─── Spinner ─── */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.spin-icon { display: inline-block; animation: spin 1.5s linear infinite; }

/* ─── Plan Selection Cards (Wizard Step 1) ─── */
.plan-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    gap: 0 1.5rem;
}

.plan-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    padding: 24px;
    border: 1px solid rgba(14,191,193,0.3);
    border-radius: 20px;
    background: #f7fcfc;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    user-select: none;
    position: relative;
}

.plan-card:hover { box-shadow: 0 8px 24px rgba(14,191,193,0.15); }

.plan-card--featured {
    background: #fff;
    border: 1px solid rgba(14,191,193,0.3);
    box-shadow: 0 8px 32px rgba(14,191,193,0.18);
}

.plan-card--featured:hover { box-shadow: 0 12px 40px rgba(14,191,193,0.28); }

.plan-card.plan-selected {
    border: 2px solid var(--brand-teal) !important;
    box-shadow: 0 0 0 4px rgba(14,191,193,0.18), 0 8px 24px rgba(14,191,193,0.15) !important;
    background: rgba(14,191,193,0.04) !important;
    transform: scale(1.02);
}

.plan-badge {
    display: none;
}

.plan-card--featured .plan-badge {
    display: inline-block;
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--brand-teal);
    color: #fff;
    border: none;
    border-radius: 40px;
    font-size: 12px;
    padding: 4px 14px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1;
}

.plan-title {
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.plan-price {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 4px;
}

.plan-card hr {
    margin: 14px 0;
    border: none;
    border-top: 1px solid rgba(14,191,193,0.3);
}

.plan-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.plan-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 9px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%2313BFC2' opacity='.15'/%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-4.5' stroke='%2313BFC2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.plan-list li.plan-list__extra {
    color: var(--brand-dark) !important;
    font-weight: 600;
}

.plan-list li.plan-list__extra::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%2313BFC2'/%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-4.5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

.swipe-hint {
    display: none;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .swipe-hint {
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: var(--text-secondary);
        opacity: 0.7;
        margin: -0.75rem 0 0.75rem;
        letter-spacing: 0.5px;
    }
    .hero h1 { font-size: 1.75rem; }
    .pricing-cards { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .wizard-body { padding: 1.25rem; }
    .wizard-steps { flex-wrap: wrap; }

    .plan-cards-grid {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 0.1rem 0.6rem;
        margin: 0 -0.1rem;
        scrollbar-width: none;
    }

    .plan-cards-grid::-webkit-scrollbar {
        display: none;
    }

    .plan-card {
        display: flex;
        flex-direction: column;
        grid-row: auto;
        flex: 0 0 calc(100% - 1.2rem);
        min-width: calc(100% - 1.2rem);
        scroll-snap-align: start;
    }

    .plan-card--featured .plan-badge {
        top: 0;
        right: 12px;
        transform: translateY(-50%);
        z-index: 2;
    }

    .plan-card.plan-selected {
        transform: none;
    }
}

/* ─── Verify Page ─── */
.verify-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
}

.verify-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.verify-card .icon-large { font-size: 4rem; margin-bottom: 1rem; }
.verify-card h2 { margin-bottom: 0.75rem; color: var(--brand-dark); }
.verify-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ─── OTP Input ─── */
.otp-input {
    font-size: 2rem;
    letter-spacing: 8px;
    text-align: center;
    padding: 0.75rem;
    width: 200px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-family: monospace;
}

.otp-input:focus { border-color: var(--brand-teal); outline: none; }

/* ─── Address Autocomplete ─── */
.address-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}

.address-suggestion {
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-light);
    transition: background 0.15s;
}

.address-suggestion:hover { background: var(--bg-light); }
.address-suggestion:last-child { border-bottom: none; }

.suggestion-name { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.suggestion-location { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }

.address-spinner {
    position: absolute;
    right: 10px;
    top: 38px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(14,191,193,0.2);
    border-top-color: var(--brand-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ─── Billing Type Toggle ─── */
.billing-type-toggle {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.billing-type-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    background: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-family: inherit;
}

.billing-type-btn:not(:last-child) { border-right: 1px solid var(--border-color); }

.billing-type-btn.active {
    background: var(--brand-teal);
    color: #fff;
}

.billing-type-btn:hover:not(.active) { background: var(--bg-light); }

/* ─── Bank ID Confirmation ─── */
.bankid-confirmation {
    text-align: center;
    padding: 1rem 0;
}

.bankid-confirmation .icon-large { font-size: 3rem; margin-bottom: 0.5rem; }

/* Verification result cards */
.verif-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.3s;
}
.verif-card.verif-ok { border-left: 4px solid #28a745; }
.verif-card.verif-warn { border-left: 4px solid #dc3545; background: #fff5f5; }
.verif-card.verif-warn-amber { border-left: 4px solid #e67e22; background: #fffbf0; }
.verif-card.verif-err { border-left: 4px solid #6c757d; }
.verif-status {
    padding: 0.375rem 0.75rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}
.verif-status.status-ok { background: #d4edda; color: #155724; }
.verif-status.status-warn { background: #f8d7da; color: #721c24; }
.verif-status.status-warn-amber { background: #fef3cd; color: #856404; }
.verif-status.status-err { background: #e9ecef; color: #6c757d; }
.verif-status.status-loading { background: #fff3cd; color: #856404; }
.verif-details {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    font-size: 0.875rem;
    color: #495057;
}
.verif-details.visible { display: block; }
