/* Modernized CSS for Grenke Kalkulacka */

@font-face {
    font-family: "HelveticaNowText";
    src: url("../fonts/HelvetivaNowText/HelveticaNowText-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "HelveticaNowText";
    src: url("../fonts/HelvetivaNowText/HelveticaNowText-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: "HelveticaNowText";
    src: url("../fonts/HelvetivaNowText/HelveticaNowText-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: "HelveticaNowText";
    src: url("../fonts/HelvetivaNowText/HelveticaNowText-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
}

html,
body {
    font-family: "HelveticaNowText", "Open Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #f7f7f7;
    font-weight: 300;
    color: #222;
    font-size: 16px;
    line-height: 1.6;
}

header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 24px 0 16px 0;
    margin-bottom: 32px;
}

header.card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 32px;
}

.header-content {
    min-width: 300px;
}

#logo {
    flex-shrink: 0;
}

#logo img {
    width: 250px;
    height: auto;
    display: block;
}

a {
    color: #000;
}

.form-control {
    height: initial;
}

.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 32px 32px 24px 32px;
    margin-bottom: 32px;
}

h1,
h2,
h3,
h4 {
    font-weight: 300;
    color: #111;
    margin-bottom: 18px;
}

h1 {
    font-size: 2.2rem;
}
h2 {
    font-size: 1.5rem;
}

.section-title {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 12px;
    font-weight: 300;
}

.btn,
button,
input[type="submit"] {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 12px;
}
.btn:hover,
button:hover,
input[type="submit"]:hover,
.btn:focus,
button:focus,
input[type="submit"]:focus {
    background: #222;
    color: white;
}

.form-group {
    margin-bottom: 24px;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafafa;
    margin-top: 6px;
    margin-bottom: 6px;
    transition: border 0.2s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus {
    border: 1.5px solid #111;
    outline: none;
}

.radio label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: 300;
}
.radio input[type="radio"] {
    accent-color: #111;
    margin-right: 10px;
}

.subtext {
    color: #888;
    font-size: 0.95rem;
    margin-top: 2px;
}

.hero {
    background: #222 url("/assets/img/hero-bg.jpg") center/cover no-repeat;
    color: #fff;
    border-radius: 18px;
    padding: 6px 32px 20px 32px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}
.hero p {
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 10px;
}

.stats {
    display: flex;
    gap: 32px;
    margin: 32px 0;
}
.stat {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 24px 32px;
    text-align: center;
    flex: 1;
}
.stat h3 {
    font-size: 2rem;
    color: #111;
    margin-bottom: 8px;
}
.stat p {
    color: #666;
    font-size: 1rem;
}

footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 32px 0 16px 0;
    color: #888;
    font-size: 0.95rem;
}

footer .flex {
    display: flex;
    gap: 30px;
    justify-content: center;
}

footer .flex a {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-right: 12px;
}

footer .flex a:last-child {
    margin-right: 0;
}

footer .flex .links {
    display: flex;
    justify-content: center;
}

.step-2-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.d-none {
    display: none;
}

.subtext.error {
    color: #a94442 !important;
}

/* Tablet styles */
@media (max-width: 1024px) {
    header.card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 24px 20px;
    }

    #logo img {
        width: 200px;
    }

    .header-content {
        min-width: 100%;
        text-align: center;
    }

    .header-content h1 {
        font-size: 1.5rem !important;
    }
}

.price-subtext.error {
    color: #a94442 !important;
}

@media screen and (max-width: 991px) {
    footer .links,
    footer .flex {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    footer .separator {
        display: none;
    }

    #step-4 .card {
        margin-top: 24px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .main-container {
        padding: 0 16px;
    }

    header.card {
        padding: 20px 16px;
        gap: 16px;
    }

    #logo img {
        width: 180px;
    }

    .header-content h1 {
        font-size: 1.3rem !important;
        line-height: 1.3;
    }

    .header-text {
        font-size: 1rem !important;
    }

    .header-text-info {
        font-size: 0.9rem !important;
    }

    .hero h1 {
        font-size: 1.2rem;
    }
    .hero p {
        font-size: 0.9rem;
    }

    #table-choose-time {
        border: none;
    }
    
    #table-choose-time thead {
        display: none;
    }
    
    #table-choose-time tbody,
    #table-choose-time tr,
    #table-choose-time td {
        display: block;
        width: 100%;
    }
    
    #table-choose-time tr {
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    #table-choose-time td {
        border: none;
        padding: 8px 0;
        position: relative;
    }
    
    #table-choose-time td:first-child {
        text-align: center;
        margin-bottom: 10px;
    }
    
    #table-choose-time td:first-child input[type="radio"] {
        transform: scale(1.5);
        margin: 0;
    }
    
    #table-choose-time td:nth-child(2):before {
        content: "Základná doba leasingu: ";
        font-weight: bold;
        color: #666;
    }
    
    #table-choose-time td:nth-child(3):before {
        content: "Mesačný nájom bez DPH: ";
        font-weight: bold;
        color: #666;
    }
    
    #table-choose-time td:nth-child(2),
    #table-choose-time td:nth-child(3) {
        font-size: 16px;
        padding: 5px 0;
    }
    
    #table-choose-time td:nth-child(3) {
        font-weight: bold;
        color: #007bff;
        font-size: 18px;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .main-container {
        padding: 0 12px;
    }

    .card,
    .hero {
        padding: 16px 12px;
    }

    header.card {
        padding: 16px 12px;
        gap: 12px;
    }

    #logo img {
        width: 160px;
    }

    .header-content h1 {
        font-size: 1.1rem !important;
        line-height: 1.2;
    }

    .header-text {
        font-size: 0.9rem !important;
    }

    .header-text-info {
        font-size: 0.8rem !important;
        line-height: 1.4;
    }

    .stats {
        flex-direction: column;
        gap: 16px;
    }
}
