@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

::-webkit-scrollbar{
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}



html {
    -webkit-text-size-adjust: 100%; /* Za iOS i Chrome na Androidu */
    -moz-text-size-adjust: 100%;    /* Za Firefox */
    -ms-text-size-adjust: 100%;     /* Za starije IE/Edge */
    text-size-adjust: 100%;
}


/*OVO TREBA PROVJERITI*/

:root{
    --naslov-color: #9b65af;
    --krugovi-boja: linear-gradient(180deg, #bc94ca 0%, #9b65af 100%);
    --footer-boja: white;
    --footer-plava: #222534;
    --slova-footer: #3a393f;
}

body {
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: pan-y;
}




/*PISMO DIZAJN*/


 /* BLOKADA SKROLA DOK JE KOVERTA TU */
        body.stop-scroll { 
            overflow: hidden !important; 
            position: fixed; /* Ključno za iPhone */
            height: 100vh; 
        }

        /* KOVERTA PREKO CELOG EKRANA */
    #overlay-pocetni {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Rešenje za iPhone: */
    height: 100vh; 
    height: 100dvh; 
    
    background-color: #fcfcfc;
    z-index: 9999999;
    display: flex;
    flex-direction: column; /* Osigurava slaganje odozgo nadole */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    
    
    width: 100vw;
}

#video-koverta {
    width: 100% !important;
    max-width: 490px !important;
    /* Prisiljavamo video da zauzme punu dostupnu visinu ako zatreba */
    height: 100%; 
    object-fit: contain; 
    display: block;
    
    
    width: 100vw !important;  /* Koristi 100vw da bude sigurno širina celog ekrana */
    height: 100dvh !important; /* Koristi dvh za dinamičku visinu na mobilnom */
    max-width: none !important; /* UKLONI ograničenje od 490px za ovaj uvodni video */
    object-fit: cover;         /* PROMENI sa contain na cover da video popuni sve ivice */
    display: block;
    
                    /* OVO DODAJEMO: */
    max-width: 490px !important;
    margin-left: auto;           
    margin-right: auto;          
    left: 0;                     
    right: 0;  
}



.klik-zona {
    position: absolute;
    /* Centriranje na ekranu */
    top: 0; 
    left: 0;
    
    /* Smanjena veličina da pokrije samo pečat */
    width: 100%; 
    height: 100%;
    
    /* Potpuno nevidljivo */
    background: transparent; 
    /*border-radius: 50%; */
    
    z-index: 10000000;
    cursor: pointer;
    
    /* Sprečava plavi odsjaj pri kliku na mobilnom */
    -webkit-tap-highlight-color: transparent;
    outline: none;
}


.sakrij-uvertiru { 
    opacity: 0 !important; 
    visibility: hidden !important; 
    pointer-events: none; 
        }
        
        
/* Uklanja plavi odsjaj na mobilnim telefonima */
#overlay-pocetni {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Postavljamo overlay kao kontejner za apsolutno pozicionirano dugme */
#overlay-pocetni {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}











.phone-container {
    width: 100vw;
    max-width: 490px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header{
  display: flex;
  align-items: center;
  justify-content: space-around;
  /* UKLONJENA SJENKA */
  /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); */
  position: sticky;
  top: 0;
  z-index: 1000;
  max-height: 50px;
  background-color: white; /* Dodana bijela pozadina da ne bude providan */
}

header .meni_logo .logo{
max-height: 50px;
margin-top: 5px;
}

section{
  margin-top: -7px;
}

.section-1 {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 0px;
}

.margin-7{
    margin-top: -7px;
}

.section-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-2 {
  position: relative;
  margin-top: 20px;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  /*OVO TREBA PROVJERITI*/
  background-image: url(Lavander-Dream_05.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-2 h1{
  margin-top: 40px;
  text-align: center;
  color:  var(--naslov-color);
  font-family:  'Libre Baskerville', serif;
  font-weight: 800;
  font-size: 34px;
}

/* ODBROJAVANJE - KRUGOVI */
#time{
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

#time div{
  position: absolute;
  text-align: center;
  font-weight: 600;
  color: var(--clr);
  z-index: 10000;
  font-size: 1.2em; /* Malo veći font jer je krug veći */
}

#time div span{
  position: absolute;
  transform: translateX(-50%) translateY(-14px); /* Malo podešena pozicija */
  font-size: 0.25em;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: 3.5px;
}

/* TEKSTOVI ISPOD KRUGOVA */
.labels-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.label-box {
  width: 75px; /* Ista širina kao novi krugovi */
  text-align: center;
}

.label-box h3 {
  color: var(--naslov-color);
  font-family: 'Libre Baskerville', serif;
  font-size: 14px;
  margin-top: 5px;
}

#time .circle {
  position: relative;
  width: 75px;
  height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  
  /* CIJELI KRUG ODJEDNOM - Nema više rezova */
  background: var(--krugovi-boja);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Brišemo ::before i ::after jer nam više ne trebaju dva kruga */
#time .circle::before, 
#time .circle::after {
  display: none; 
}

/* Dodajemo sjenku unutar kruga da dobije na dubini */
#time .circle svg {
  position: relative;
  width: 75px;
  height: 75px;
  transform: rotate(270deg);
  z-index: 10;
  /* Ovo pravi 'kanal' u kojem bijela linija leži */
  background: rgba(0, 0, 0, 0.1); 
  border-radius: 50%;
}

#time .circle svg circle {
  fill: transparent;
  stroke-width: 2.5; /* Debljina tvog punjenja */
  stroke: var(--clr);
  stroke-linecap: round;
  cx: 37.5;
  cy: 37.5;
  r: 32; 
  stroke-dasharray: 207;
  stroke-dashoffset: 207;
}

.section-3 {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer .container{
  text-align: center;
}

.footer{
  margin-top: -7px;
  background: var(--footer-boja);
  font-size: 14px;
}

.footer .copyright {
  text-align: center;
  padding: 15px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--slova-footer);
}

@media (max-width: 991px) {
  .footer .row{
      flex-direction: column;
      padding: 20px 0px;
  }
}

@media (max-width: 350px) {
  .section-1 img {
      object-fit: contain;
  }
}


/* KOD ZA DUGME SACUVAJ DATUM */

.image-button-container {
    position: relative;
    display: inline-block;
    width: 100%;
   
}

.background-image {
    width: 100%;
    display: block;
}

/* Nevidljiva zona preko dugmeta na slici */
.clickable-overlay {
    position: absolute;
    left: 15%; /* Centrirano otprilike */
    width: 70%;
    cursor: pointer;
    background: rgba(255, 0, 0, 0); /* Skroz providno, stavi 0.2 ako hoćeš da vidiš gde je dok podešavaš */
    border-radius: 30px;
}



.calendar-options.show-menu {
    display: block;
}

.calendar-options a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

/* Osiguravamo da su ikonice vidljive */
.calendar-options a img {
    display: inline-block !important; /* Forsiramo prikaz */
    vertical-align: middle;
    width: 20px; /* Malo smo ih povećali */
    height: auto;
    margin-right: 12px;
    filter: none !important; /* Sprečavamo da ih neka druga komanda sakrije */
}

/* Podešavanje samog menija */
.calendar-options {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 250px; 
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999; /* Da bude iznad svega */
    border: 1px solid #ddd;
    overflow: hidden;
}

/* DUGMAD MAPE */


.image-map-container {
    position: relative;
    display: inline-block;
    width: 100%;
    /* Sprečava slučajno selektovanje slike dok se klikće po dugmićima */
    -webkit-user-select: none;
    user-select: none;
}

.image-map-container img {
    width: 100%;
    display: block;
}

/* Osnova za oba nevidljiva dugmeta */
.map-link-btn {
    position: absolute;
    left: 15%;  /* Centrirano po širini */
    width: 70%; /* Širina dugmeta na slici */
    height: 10.5%; /* Malo povećana visina za lakši klik prstom */
    background: rgba(255, 255, 255, 0); /* Skroz providno */
    cursor: pointer;
    border-radius: 35px; /* Prati zaobljenost tvog dizajna */
    
    /* UKLANJANJE BLICA I TREPTANJA */
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    outline: none;
    
    /* EFEKAT PRIRODNOG KLIKA */
    transition: background 0.2s ease;
}

.map-link-btn-2 {
    position: absolute;
    left: 15%;  /* Centrirano po širini */
    width: 70%; /* Širina dugmeta na slici */
    height: 10.5%; /* Malo povećana visina za lakši klik prstom */
    background: rgba(255, 255, 255, 0); /* Skroz providno */
    cursor: pointer;
    border-radius: 35px; /* Prati zaobljenost tvog dizajna */
    
    /* UKLANJANJE BLICA I TREPTANJA */
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    outline: none;
    
    /* EFEKAT PRIRODNOG KLIKA */
    transition: background 0.2s ease;
}



/* Blagi vizuelni odgovor kada korisnik zapravo pritisne dugme */
.map-link-btn:active {
    background: rgba(255, 255, 255, 0.2); /* Nežni beli odsjaj unutar dugmeta */
}

/* Pozicija za Crkvu (Otvori mapu 1) */
.crkva-btn {
    top: 79.8%; 
}

/* Pozicija za Restoran (Otvori mapu 2) */
.restoran-btn {
    top: 91.8%;
}


.restoran-btn2 {
    top: 73.8%;
}


/* Globalna zaštita od sistemskih okvira i markiranja */
.map-link-btn, .map-link {
    -webkit-touch-callout: none;
    outline: none;
}

#calendar-main-btn, 
.clickable-overlay, 
.calendar-options a,
.map-link-btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* Dupla sigurnost za starije browsere */
    outline: none; /* Uklanja i narandžasti okvir koji se nekad javi */
}


/* RSVP */


/*PRVA VERZIJA SA KLANYEVIM PNG CVJETOVIMA ZA RSVP*/
.rsvp-wrapper {
    position: relative; /* Ovo je sidro za cvetove */
    width: 100%;
    max-width: 490px;
    margin: 0 auto;
    overflow: hidden; /* Da cveće ne pravi scroll ako malo izađe van */
}

/* Osnovni stil za cvetove koji lebde */
.floral-overlay {
    position: absolute;
    width: 100%;
    height: auto;
    z-index: 10; /* Da bude iznad pozadine rsvp-a */
    pointer-events: none; /* KLJUČNO: da gost može da klikne na input ISPOD cveća */
}

.top-flowers {
    top: 0;
    left: 0;
}

.bottom-flowers {
    bottom: 0;
    left: 0;
}

/*zavrsena klanyeva verzija*/



/* --- STIL ZA GORNJU SLIKU -ODVOJENA SEKCIJA --- */

.header-floral-box {
   position: relative; /* Neophodno da bi z-index radio */
    z-index: 10;        /* Veći broj da bi bila "iznad" */
    width: 100%;
    max-width: 490px;
    margin: 0 auto;
    margin-bottom: -80px; /* Ovim je spuštaš "preko" RSVP sekcije - prilagodi broj po želji */
    line-height: 0;
}

.header-floral-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- STIL ZA DONJU SLIKU --- */
.footer-floral-box {
     position: relative; /* Neophodno da bi z-index radio */
    z-index: 10;        /* Veći broj da bi bila "iznad" */
    width: 100%;
    max-width: 490px;
    margin: 0 auto;
    line-height: 0;
    margin-top: -70px;
}

.footer-floral-box img {
    width: 100%;
    height: auto;
    display: block;
}


/**/


.section-rsvp {
    position: relative; /* Takođe neophodno */
    z-index: 5;         /* Manji broj od gornje slike */
    width: 100%;
    display: flex;
    justify-content: center;
    margin: -1px 0; /* Mali trik: -1px preklapanja rešava problem "belih linija" na nekim ekranima */
}


.rsvp-container {
    width: 100%;
    max-width: 490px;
    /* Tačne nijanse sa tvoje slike: svetlija u sredini, tamnija ka dnu */
   background: radial-gradient(
        ellipse 80% 50% at 50% 50%, 
        #c8bc9f 0%,   /* Sredina: meka šampanj/zlatna */
        #b1a17e 60%,  /* Prelazna: prigušena bež */
        #948460 100%  /* Ivice (gore i dole): tamnija bronzana */
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 15px; 
    box-sizing: border-box;
    text-align: center;
}


.section-rsvp {
    display: flex;
    justify-content: center;
}

.rsvp-container {
    width: 100%;

    aspect-ratio: 1 / 2.6;
    background-image: url(Lavander-Dream_07.jpg);
    background-size: cover; /* Osigurava da se vidi cijela slika luka */
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
   
   padding-top: 80%;
    box-sizing: border-box;
}




.rsvp-content {
    width: 100%;
    max-width: 350px; /* Drži formu uskom i elegantnom */
    text-align: center;
}

.rsvp-naslov {
    font-family: 'Source Serif 4', serif;
    color: #ffffff;
    font-size: clamp(28px, 10vw, 42px); /* Automatski se smanjuje */
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.rsvp-opis {
    color: #ffffff;
    font-size: clamp(16px, 4.5vw, 21px);
    font-family: 'Source Serif 4', serif;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 300; /* Tanji font za elegantniji izgled */
}

.datum-istaknuto {
    font-weight: 700; 
    display: inline-block;
    font-family: 'Source Serif 4', serif;
    margin-top: 5px;
    letter-spacing: 0.5px;
  
}

.input-group {
    margin-bottom: 25px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff !important;
    text-align: center;
    padding: 10px 5px;
    outline: none;
    font-family: 'Source Serif 4', serif;
    font-size: 19px;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Radio dugmići */
.potvrda-group {
    margin: 30px 0;
}

.potvrda-group p {
    color: white;
    font-size: 20px;
    font-family: 'Source Serif 4', serif;
    margin-bottom: 15px;
}

.radio-options {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: white;
    font-family: 'Source Serif 4', serif;
    font-size: 18px;
    -webkit-tap-highlight-color: transparent;
}

.radio-label input {
    position: absolute;
    opacity: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    position: relative;
}

.radio-label input:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

/* Dugme */
.custom-rsvp-btn {
    background-color: #ffffff;
    color: #9b65af;
    font-family: 'Source Serif 4', serif;
    font-size: 20px;
    font-weight: 600;
    padding: 12px 0;
    width: 100%;
    max-width: 250px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Glavno pravilo do 410px */
@media (max-width: 446px) {
   
    .rsvp-container {
 padding-top: 240px; /* Podesi ovisno o tome gdje luk počinje */
}
}




@media (max-width: 330px) {
   
    .rsvp-container {
 padding-top: 200px; /* Podesi ovisno o tome gdje luk počinje */
}
}

/* Potpuna responsivnost za male ekrane do 200px */
@media (max-width: 320px) {
    .rsvp-naslov { font-size: 28px; }
    .rsvp-opis { font-size: 15px; }
    .input-group input { font-size: 16px; }
    .custom-rsvp-btn { font-size: 18px; max-width: 200px; }
}

@media (max-width: 240px) {
    .rsvp-container { padding: 30px 10px; }
    .radio-options { gap: 15px; }
    .checkmark { margin-right: 5px; }
}

/* Uklanja strelice za Chrome, Safari, Edge i Operu */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Uklanja strelice za Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


/*DODATAK ZA RSVP */

/* 1. Uklanjanje plave boje na klik (Android) */
.radio-label, 
.radio-label input[type="radio"], 
.radio-label span {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    outline: none;
}

/* Sakrivamo originalni sistemski krug koji iPhone kvari */
.radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Pravimo naš NOVI krug (checkmark) */
.checkmark {
    height: 18px;
    width: 18px;
    border: 2px solid #ffffff; /* Bela ivica kao na tvojoj slici */
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    position: relative;
    vertical-align: middle;
    background: transparent;
}

/* Bela tačkica unutra - nevidljiva dok se ne klikne */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white; /* Boja tačkice */
}

/* Kada je radio dugme selektovano, prikaži tačkicu */
.radio-label input:checked ~ .checkmark:after {
    display: block;
}

/* Opciono: Pojačaj ivicu selektovanog kruga */
.radio-label input:checked ~ .checkmark {
    border: 2px solid #ffffff;
}

/* Sprečava plavljenje teksta na iPhone-u */
.radio-label {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
}


/*MUZIKA*/

#mute-kontrola {
    position: fixed;
    bottom: 40px;
    /* Pozicioniranje na lijevu ivicu kontejnera */
    left: calc(51% - 245px); 
    width: 45px;
    height: 45px;
    background: var(--naslov-color);
    border-radius: 50%;
    display: none; /* Prikazuje se tek kroz JS */
    
    /* Centriranje ikonice unutar kruga */
    align-items: center;
    justify-content: center;
    
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Centriranje samog SVG-a */
#mute-kontrola svg {
    display: block;
    width: 24px;
    height: 24px;
}



/*DODATAK ZA RSVP */

/* 1. Uklanjanje plave boje na klik (Android) */
.radio-label,
#submit-btn,
.radio-label input[type="radio"], 
.radio-label span {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    outline: none;
}

/* Sakrivamo originalni sistemski krug koji iPhone kvari */
.radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Pravimo naš NOVI krug (checkmark) */
.checkmark {
    height: 18px;
    width: 18px;
    border: 2px solid #ffffff; /* Bela ivica kao na tvojoj slici */
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    position: relative;
    vertical-align: middle;
    background: transparent;
}

/* Bela tačkica unutra - nevidljiva dok se ne klikne */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white; /* Boja tačkice */
}

/* Kada je radio dugme selektovano, prikaži tačkicu */
.radio-label input:checked ~ .checkmark:after {
    display: block;
}

/* Opciono: Pojačaj ivicu selektovanog kruga */
.radio-label input:checked ~ .checkmark {
    border: 2px solid #ffffff;
}

/* Sprečava plavljenje teksta na iPhone-u */
.radio-label {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Sprečava promenu boje pozadine i teksta kod automatskog popunjavanja */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover, 
.input-group input:-webkit-autofill:focus, 
.input-group input:-webkit-autofill:active {
    /* Ovo "vara" pretraživač tako što postavlja ogromnu unutrašnju senku u boji pozadine */
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s;
    
    /* Postavlja boju slova na belu */
    -webkit-text-fill-color: white !important;
}

/* Dodatna sigurnost za novije verzije browsera */
.input-group input:autofill {
    background: transparent !important;
    color: white !important;
}





/* Glavno pravilo do 410px */
@media (max-width: 410px) {
    #submit-btn {
        margin-top: 5%;
    }

}

/* Opseg 360px - 379px */
@media (max-width: 379px) and (min-width: 360px) {
    #submit-btn {
        margin-top: 1%;
    }
}

/* Prvi opseg za 7% (347px - 349px) i drugi opseg za 7% (309px - 331px) */
@media (max-width: 349px) and (min-width: 345px), 
       (max-width: 331px) and (min-width: 309px) {
    #submit-btn {
        margin-top: 1%;
    }
}

/* Sve ispod 309px */
@media (max-width: 308px) {
    #submit-btn {
        margin-top: 0%;
    }
}

/*POPAP*/

/* --- SUCCESS POPUP STILOVI --- */

/* Pozadina koja prekriva ceo ekran */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Providna bela pozadina sa zamućenjem */
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(8px); /* Ključ za moderan izgled */
    -webkit-backdrop-filter: blur(8px); /* Za Safari */
    
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease; /* Lagani ulazak */
}

/* Bela kutija popupa */
.popup-content {
    background: white;
    /* Povećan vertikalni padding (50px gore/dole) za veću visinu */
    padding: 50px 25px; 
    border-radius: 28px; /* Malo zaobljenije za moderniji izgled */
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    
    /* Širina ostaje optimalna za tvoj layout */
    width: 380px; 
    max-width: 92%; 
    
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Dodaje automatski razmak između elemenata unutar popupa */
}

/* Animacija za pojavljivanje */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


/* Tekst u popupu */
.popup-content h3 {
    font-family: 'Source Serif 4', serif;
    font-size: 24px; /* Blago smanjeno sa 28px da bi "stalo" u jedan red */
    color: #333;
    margin: 15px 0 8px;
    line-height: 1.2;
}

.popup-content p {
    font-family: 'Source Serif 4', serif;
    font-size: 16px; /* Blago smanjeno sa 18px */
    color: #666;
    margin: 0;
    white-space: nowrap; /* Sprečava prelamanje u drugi red ako je baš blizu ivice */
}

/* --- ANIMACIJA ZELENOG CEKERA (SVG) --- */

.success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.checkmark-svg {
    width: 60px;
    height: 60px;
    display: block;
    stroke-width: 3;
    stroke: #4CAF50; /* Boja kvačice - možeš staviti i #54684c */
    fill: none;
}

/* Krug oko kvačice koji se iscrtava */
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-miterlimit: 10;
    stroke: #4CAF50; /* Boja kruga */
    fill: none; /* Krug bez popune */
    animation: strokeAnim 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
    border-radius: 50%; /* Ključni deo: zaobljene ivice za savršen krug */
    -webkit-border-radius: 50%; /* Za bolju kompatibilnost sa starijim browserima */
    -moz-border-radius: 50%;
}

/* Sama kvačica (Check) koja se iscrtava */
.checkmark__check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: strokeAnim 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

/* Zajednička animacija za crtanje linija */
@keyframes strokeAnim {
    to { 
        stroke-dashoffset: 0; 
    }
}

