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

body {
    font-family: 'Open Sans', sans-serif;
}

/* FIXED HEADER WRAPPER */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* LOGO SECTION */
.logo-section {
    height: 120px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-section img {
    height: 80px;
    object-fit: contain;
}

/* MAIN NAVIGATION */
.main-nav {
    height: 79px;
    background: #022c27;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    border-bottom: 3px solid #cedd01;
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.main-nav a {
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 300;
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #cedd01;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    opacity: 1;
}

/* HAMBURGER MENU ICON */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    position: absolute;
    left: 20px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* DROPDOWN NAVIGATION */
.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown > a {
    height: 100%;
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 300;
    position: relative;
}

.nav-dropdown > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #cedd01;
    opacity: 0;
}

.nav-dropdown:hover > a::after {
    opacity: 1;
}

/* DROPDOWN MENU */
.dropdown-navmenu {
    position: absolute;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    background: #022c27;
    min-width: 220px;
    display: none;
    flex-direction: column;
    text-align: center;
    border-top: 3px solid #cedd01;
    z-index: 999;
}

.dropdown-navmenu a {
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
}

.dropdown-navmenu a:hover {
    background: #023630;
}

.nav-dropdown:hover .dropdown-navmenu {
    display: flex;
}

/* LANGUAGE SWITCH */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.nav-lang img {
    width: 24px;
    height: auto;
    display: block;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.nav-lang a.active img,
.nav-lang img:hover {
    opacity: 1;
}

/* PAGE OFFSET */
.page-offset {
    height: 199px;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 40px;
    color: #ffffff;
}

.hero-content h1 {
    font-weight: 300;
    font-size: 60px;
    max-width: 1200px;
    line-height: 1.2;
}

.title {
    margin-top: 30px;
    font-size: 30px;
}

.title-sent {
    margin-top: 30px;
    font-size: 30px;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-buttons a {
    padding: 20px 40px;
    border-radius: 60px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 400;
}

.btn-primary {
    background: #023630;
    border: 3px solid #00584f;
    color: #ffffff;
}

.btn-outline {
    border: 3px solid #cedd01;
    color: #ffffff;
}

/* ABOUT SECTION */
.about {
    padding: 100px 20px;
    text-align: center;
}

.about h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 25px;
    color: #303030;
}

.about p {
    font-size: 16px;
    max-width: 960px;
    margin: 0 auto;
    line-height: 1.8;
    color: #303030;
}

/* INFO SECTION */
.info-section {
    position: relative;
    background: url("../images/info1.jpg") center / cover no-repeat;
    padding: 100px 20px;
    color: #ffffff;
}

.info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 54, 48, 0.92);
}

.info-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.info-content h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.info-subtitle {
    font-size: 14px;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
    opacity: 0.9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.info-item i {
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
}

.info-item p {
    font-size: 14px;
    line-height: 1.7;
}

/* CARS SECTION */
.cars-section {
    position: relative;
    padding: 100px 20px;
    color: #303030;
}

.cars-img img {
    max-width: 100%;
    height: auto;
    padding: 50px 0;
}

/* SERVICE SECTION */
.service-section {
    position: relative;
    background: url("../images/services.jpg") center / cover no-repeat;
    padding: 100px 20px;
    color: #ffffff;
}

.service-section img {
    max-width: 100%;
    height: auto;
}

/* PAYMENT SECTION */
.pay-section {
    position: relative;
    padding: 100px 20px;
    color: #303030;
    text-align: center;
}

.pay-section img {
    max-width: 100%;
    height: auto;
}

/* FOOTER STYLES */
.site-footer {
    background-color: #222222;
    color: #ffffff;
    padding: 40px 20px 20px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    margin-bottom: 30px;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.site-footer ul {
    list-style: none;
}

.site-footer li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.site-footer a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.site-footer a:hover {
    color: #fff;
}

.icon, .social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border-radius: 4px;
    font-weight: bold;
    color: white;
}

.phone, .email { background-color: #f1c40f; }
.whatsapp { background-color: #2ecc71; }
.viber { background-color: #8e44ad; }
.fb { background-color: #3b5998; }
.tw { background-color: #1da1f2; }
.ig { background-color: #e1306c; }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    max-width: 1200px;
    margin: 20px auto 0 auto;
}

/* BOOKING FORM */

.booking-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fdfdfd;
    font-family: 'Open Sans', sans-serif;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #023630;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #333;
    width: 100%;
}

/* Osigurava da su labeli iznad inputa unutar flex reda */
.sub-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Popravka za flex-row da prati poravnanje labela */
.flex-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* FOOTER SEKCIJA SA DESNE STRANE */
.form-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 25px;
}

.price-container {
    text-align: center;
}

.price-row {
    margin-bottom: 15px;
}

.price-label {
    font-size: 18px;
    color: #999;
    margin-right: 15px;
}

.price-value {
    font-size: 32px;
    font-weight: bold;
    color: #023630;
}

.agb-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.agb-row a {
    color: #3498db;
    text-decoration: none;
}

.order-button, #submitv, #submitz, #submith, #submitk {
    padding: 20px 60px;
    border-radius: 60px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 400;
    background: #023630;
    border: 3px solid #00584f;
    color: #ffffff;
    cursor: pointer;
}

.order-button:hover, #submitv:hover, #submitz:hover, #submith:hover, #submitk:hover {
    background: #00584f;
}

/* Informationen */
.informationen {
    padding: 50px 20px;
    text-align: center;
}

.informationen h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 25px;
    color: #303030;
}

.informationen p {
    font-size: 16px;
    max-width: 960px;
    margin: 0 auto;
    line-height: 1.8;
    color: #303030;
}

/* ZUM SECTION */
.zum-section {
    position: relative;
    background: url("../images/zum.jpg") center / cover no-repeat;
    padding: 100px 20px;
    color: #ffffff;
}

.zum-section img {
    max-width: 100%;
    height: auto;
}

/* VOM SECTION */
.vom-section {
    position: relative;
    background: url("../images/vom.jpg") center / cover no-repeat;
    padding: 100px 20px;
    color: #ffffff;
}

.vom-section img {
    max-width: 100%;
    height: auto;
}

/* STUNDE SECTION */
.stunde-section {
    position: relative;
    background: url("../images/stunde.jpg") center / cover no-repeat;
    padding: 100px 20px;
    color: #ffffff;
}

.stunde-section img {
    max-width: 100%;
    height: auto;
}

/* PREIS SECTION */
.preis-section {
    position: relative;
    background: url("../images/preis.jpg") center / cover no-repeat;
    padding: 100px 20px;
    color: #ffffff;
}

.preis-section img {
    max-width: 100%;
    height: auto;
}

/* KONTAKT SECTION */
.kontakt-section {
    position: relative;
    background: url("../images/kontakt.jpg") center / cover no-repeat;
    padding: 100px 20px;
    color: #ffffff;
}

.kontakt-section img {
    max-width: 100%;
    height: auto;
}

/* Kontakt Sekcija Layout */
.contact-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    display: flex;
    gap: 40px;
    font-family: 'Open Sans', sans-serif;
}

.contact-form-side {
    flex: 2;
}

.contact-info-side {
    flex: 1;
    background: #022c27;
    color: white;
    padding: 40px;
    border-radius: 5px;
}

/* Naslovi */
.contact-form-side h1 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
}

.contact-form-side p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Polja za unos */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input, .form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #023630;
}

/* Captcha Summa */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.captcha-row input {
    width: 80px;
    text-align: center;
}

/* Dugme */
.btn-submit {
    padding: 20px 60px;
    border-radius: 60px;
    margin-top: 40px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 400;
    background: #023630;
    border: 3px solid #00584f;
    color: #ffffff;
}

.btn-submit:hover {
    background: #00584f;
}

/* Desna strana - Info Box */
.contact-info-side h3 {
    margin-bottom: 30px;
    font-size: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    color: #ffffff;
    font-size: 18px;
    margin-top: 5px;
}

.info-text strong {
    display: block;
    margin-bottom: 5px;
}

/* Kontejner forme mora imati ovo da bi poruka bila unutar nje */
.contact-form-side {
    position: relative; 
}

/* Nova poruka koja se skroluje sa sadržajem */
.validation-toast {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #ff4d4d;
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    margin-bottom: 20px;
    /* Blaga animacija pojavljivanja */
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responzivnost */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    .form-row {
        flex-direction: column;
    }
}

/* AGB SECTION */
.agb-section {
    position: relative;
    background: url("../images/agb.jpg") center / cover no-repeat;
    padding: 100px 20px;
    color: #ffffff;
}

.agb-section img {
    max-width: 100%;
    height: auto;
}

/* IMPRESSUM SECTION */
.impressum-section {
    position: relative;
    background: url("../images/impressum.jpg") center / cover no-repeat;
    padding: 100px 20px;
    color: #ffffff;
}

.impressum-section img {
    max-width: 100%;
    height: auto;
}

/* MOBILNA VERZIJA */
@media (max-width: 900px) {
    .form-grid { grid-template-columns: 1fr; }
    .price-container { width: 100%; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex; /* Prikazujemo hamburger */
    }

    .nav-links {
        position: fixed;
        top: 199px; /* Odmah ispod logo+nav dela */
        left: -100%;
        width: 100%;
        height: calc(100vh - 199px);
        background: #022c27;
        flex-direction: column;
        gap: 0;
        transition: 0.4s ease;
        overflow-y: auto;
        padding-bottom: 50px;
    }

    .nav-links.active {
        left: 0;
    }

    .main-nav a {
        width: 100%;
        justify-content: center;
        height: 60px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-dropdown {
        width: 100%;
        flex-direction: column;
        height: auto;
    }

    .dropdown-navmenu {
        position: static;
        transform: none;
        display: block; /* Uvek vidljivo na mobilnom radi lakše navigacije */
        width: 100%;
        background: #011d1a;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
}

/* --- RESPONSIVE ZA MOBILNE UREĐAJE (DO 460px) --- */
@media (max-width: 460px) {
    
    /* 1. Header i Logo */
    .logo-section {
        height: 60px; /* Smanjujemo visinu na mobilnom */
    }
    
    .logo-section img {
        width: 160px;
        height: auto;
    }
    
    .page-offset {
        height: 139px; /* Prilagođavamo offset jer je logo manji */
    }

    /* 2. Hero Sekcija */
    .hero-content {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 28px !important; /* Force manji font za naslov */
        line-height: 1.3;
    }

    .title {
        font-size: 20px;
        margin-top: 15px;
    }

    .hero-buttons a {
        padding: 15px 30px;
        width: 100%; /* Dugmad jedno ispod drugog preko celog ekrana */
        text-align: center;
    }

    /* 3. Booking Form (Rezervacija) */
    .booking-container {
        margin: 20px 10px;
        padding: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr; /* Sva polja u jednu kolonu */
        gap: 15px;
    }

    .flex-row {
        flex-direction: column; /* Polja kao što su Datum/Vreme idu jedno ispod drugog */
        gap: 10px;
    }

    .sub-group {
        width: 100%;
    }

    .price-value {
        font-size: 26px;
    }

    .order-button, #submitv, #submitz, #submith, #submitk {
        padding: 15px 30px;
        width: 100%;
        text-align: center;
    }

    /* 4. Kontakt Sekcija */
    .contact-container {
        margin: 20px 0;
        padding: 15px;
        gap: 20px;
    }

    .contact-form-side h1 {
        font-size: 24px;
    }

    .contact-info-side {
        padding: 25px 20px;
    }

    .btn-submit {
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    /* 5. Info i About sekcije */
    .about, .informationen, .info-section {
        padding: 60px 20px;
    }

    .about h2, .informationen h2, .info-content h2 {
        font-size: 26px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 6. Footer */
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10px;
    }

    .footer-column {
        min-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* 7. Navigacija (Popravka za jako male ekrane) */
    .nav-links {
        top: 179px; /* Usklađeno sa novim page-offsetom */
        height: calc(100vh - 179px);
    }
}

/* Dodatna popravka za tabelarni prikaz cena ili slika ako ih ima */
.cars-img img, .service-section img, .pay-section img {

    height: auto;
}


/* Dodao Damir */
.add-address-box {
    padding: 15px;
    background: rgb(240, 240, 240);
    border-radius: 5px;
    margin-bottom: 15px;
}
.error{
    color: #993131;
    font-size: 12px;
    font-weight: bold;
}
.flex-row > div.error {
    flex: 0 0 100%;
    margin-top: -15px;
}
.hide{
    display: none;
}
.form-hour{
    text-align: right;
    margin-top: 15px;
}
.carh label, .car label {
    display: flex;
    align-items: flex-start; /* da višelinijski tekst lepo krene od vrha */
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.carh input[type="radio"], .car input[type="radio"] {
    flex: 0 0 20px;   /* fiksna širina za radio dugme */
    margin-top: 3px; /* fino vertikalno poravnanje */
}

.carh .carh-text, .car .car-text {
    flex: 1;
    line-height: 1.4;
}