/* ========================================
   KONTAKT STRANICA - CUSTOM STILOVI
   ======================================== */

/* Hero sekcija */
/* Prilagođen hero stil s fotografijom */
.contact-hero {
    padding: 120px 5% 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    /* Pozadinska slika kao u galeriji */
    background: linear-gradient(rgba(0, 30, 60, 0.85), rgba(0, 102, 204, 0.7));
    background-image: 
        linear-gradient(rgba(0, 30, 60, 0.85), rgba(0, 51, 102, 0.8)),
        url('../images/slides/slide-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 168, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

/* Glatki prijelaz prema dolje */
.contact-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(10, 15, 28, 0.5) 50%, 
        rgba(10, 15, 28, 0.8) 80%,
        #0a0f1c 100%
    );
    pointer-events: none;
    z-index: 3;
}

/* Animirane čestice - povećane */
.contact-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.contact-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 168, 255, 0.6);
    border-radius: 50%;
    animation: float-up 15s linear infinite;
    box-shadow: 0 0 6px rgba(0, 168, 255, 0.4);
}

.contact-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.contact-particle:nth-child(2) { left: 25%; animation-delay: 2s; }
.contact-particle:nth-child(3) { left: 40%; animation-delay: 4s; }
.contact-particle:nth-child(4) { left: 55%; animation-delay: 6s; }
.contact-particle:nth-child(5) { left: 70%; animation-delay: 8s; }
.contact-particle:nth-child(6) { left: 85%; animation-delay: 10s; }

/* Dodatne čestice */
.contact-particle:nth-child(7) { left: 15%; animation-delay: 12s; width: 3px; height: 3px; }
.contact-particle:nth-child(8) { left: 30%; animation-delay: 14s; width: 5px; height: 5px; }
.contact-particle:nth-child(9) { left: 65%; animation-delay: 16s; width: 3px; height: 3px; }
.contact-particle:nth-child(10) { left: 95%; animation-delay: 18s; width: 4px; height: 4px; }

.contact-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite, fadeInDown 1s ease forwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background-size: 200% 200%;
}

.contact-subtitle {
    font-size: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

/* Animirane ikone */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float-icon 20s ease-in-out infinite;
}

.floating-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 50%; right: 15%; animation-delay: 5s; }
.floating-icon:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 10s; }
.floating-icon:nth-child(4) { top: 40%; right: 25%; animation-delay: 15s; }

@keyframes float-icon {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Dodatne animacije za forme */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    animation: input-glow 0.3s ease forwards;
}

@keyframes input-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 168, 255, 0); }
    100% { box-shadow: 0 0 0 5px rgba(0, 168, 255, 0.2); }
}

/* Animacija za info kartice */
.info-card {
    opacity: 0;
    transform: translateY(30px);
    animation: card-appear 0.8s ease forwards;
}

.info-card:nth-child(1) { animation-delay: 0.9s; }
.info-card:nth-child(2) { animation-delay: 1.1s; }

@keyframes card-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nove animacije - valovi */
.contact-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    overflow: hidden;
    z-index: 2;
}

.contact-wave {
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-56.8-405.4-60.6C164 1.5 74.7 45.4 0 87.8V0h800v56.9z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: wave-move 10s linear infinite;
}

.contact-wave:nth-child(2) {
    animation-delay: -5s;
    opacity: 0.5;
    animation-duration: 15s;
}

@keyframes wave-move {
    0% { left: -100%; }
    100% { left: 0%; }
}

/* Glavni kontakt sadržaj - TAMNIJA POZADINA */
.contact-main {
    padding: 80px 5% 100px;
    /* Tamnija pozadina umjesto svijetle */
    background: linear-gradient(180deg, 
        #0a0f1c 0%, 
        #0d1220 50%, 
        #0a0f1c 100%
    );
    position: relative;
    /* Glatki prijelaz prema footer-u */
    margin-bottom: 0;
}

/* Suptilni pattern u pozadini */
.contact-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 168, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Kontakt forma - tamni stil */
.contact-form-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInLeft 1s ease forwards;
    animation-delay: 0.5s;
}

.form-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #00a8ff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(5px);
}

/* Stilovi za select element */
.form-group select {
    cursor: pointer;
    /* Reset default arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300a8ff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group select option {
    background: #1a2332;
    color: white;
}

/* Placeholder stilovi */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00a8ff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-submit {
    background: #00a8ff;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 168, 255, 0.4);
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.form-submit:hover::before {
    width: 300px;
    height: 300px;
}

/* Kontakt informacije - tamni stil */
.contact-info-section {
    opacity: 0;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.7s;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.info-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 168, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a8ff;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.info-item svg {
    width: 24px;
    height: 24px;
    color: #00a8ff;
    flex-shrink: 0;
}

.info-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.info-text strong {
    color: rgba(255, 255, 255, 0.9);
}

.info-text a {
    color: #00a8ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-text a:hover {
    color: #33c0ff;
    text-decoration: underline;
}

/* Socijalne mreže */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #00a8ff;
    position: relative;
    overflow: hidden;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 168, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.social-link:hover::after {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    background: #00a8ff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.4);
}

/* Loading animacija za formu */
.form-submit.loading {
    position: relative;
    color: transparent;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

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

/* Mapa sekcija */
.map-section {
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 5;
    /* Pozadina koja se staplja s kontakt sekcijom */
    background: #0a0f1c;
    padding-bottom: 100px;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.map-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.9s;
    transform: translateY(50px);
}

@keyframes map-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.map-header {
    background: linear-gradient(135deg, #00a8ff 0%, #0080cc 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.map-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.map-address {
    font-size: 1.1rem;
    opacity: 0.9;
}

#map {
    height: 400px;
    width: 100%;
}

/* Date input wrapper */
.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-inputs .form-group {
    position: relative;
}

/* Date input stilovi */
.form-group input[type="text"][name="checkIn"],
.form-group input[type="text"][name="checkOut"] {
    cursor: text;
    position: relative;
    font-variant-numeric: tabular-nums;
    padding-right: 50px;
    width: 100%;
}

/* Skriveni date picker */
.date-picker-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Kalendar dugme */
.calendar-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #00a8ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-btn:hover:not(:disabled) {
    background: rgba(0, 168, 255, 0.2);
    border-color: #00a8ff;
    transform: translateY(-50%) scale(1.05);
}

.calendar-btn:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
}

/* Disabled dugme */
.calendar-btn:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

/* Disabled input stil */
.form-group input[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.02);
}

/* Hover efekt za disabled input */
.form-group input[disabled]:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Greška u validaciji */
.form-group input[style*="border-color: rgb(255, 71, 87)"] {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Success poruka */
.success-message {
    display: none;
    background: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
}

.success-message.show {
    display: block;
    animation: fadeInDown 0.5s ease;
}

/* Date picker elements */
.date-input-container {
    position: relative;
    display: block;
    width: 100%;
}

.date-display-input {
    width: 100%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 50px 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.date-display-input:focus {
    outline: none;
    border-color: #00a8ff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2);
}

.date-picker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.date-picker-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    pointer-events: all;
}

.calendar-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00a8ff;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group.focused .calendar-icon,
.form-group:hover .calendar-icon {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.form-group.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.form-group.disabled .date-display-input {
    background: rgba(255, 255, 255, 0.02);
    cursor: not-allowed;
}

.form-group.error .date-display-input {
    border-color: #ff4757;
    animation: shake 0.3s ease-in-out;
}

.form-group.success .date-display-input {
    border-color: #4CAF50;
}

/* Animacije */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Morski prijelaz - integriran */
.sea-horizon-transition {
    position: relative;
    height: 200px;
    margin-top: -120px;
    margin-bottom: -50px;
    overflow: hidden;
    z-index: 10;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(10, 15, 28, 0.1) 10%,
        rgba(10, 15, 28, 0.3) 20%,
        rgba(10, 15, 28, 0.5) 40%,
        rgba(10, 15, 28, 0.7) 60%,
        rgba(10, 15, 28, 0.9) 80%,
        rgba(10, 15, 28, 0.95) 90%,
        #0a0f1c 100%
    );
    mask-image: linear-gradient(to right,
        black 0%,
        black 70%,
        rgba(0,0,0,0.8) 80%,
        rgba(0,0,0,0.4) 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(to right,
        black 0%,
        black 70%,
        rgba(0,0,0,0.8) 80%,
        rgba(0,0,0,0.4) 90%,
        transparent 100%
    );
}

.sea-horizon-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: -10%;
    bottom: 0;
    background: linear-gradient(to right,
        transparent 0%,
        transparent 65%,
        rgba(10, 15, 28, 0.5) 75%,
        #0a0f1c 85%,
        #0a0f1c 100%
    );
    z-index: 20;
}

.sea-horizon-transition .stars {
    position: absolute;
    width: 80%;
    height: 100%;
    left: 0;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(3px 3px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 10% 60%, rgba(255,255,255,0.7), transparent);
    background-size: 300px 300px;
    animation: twinkle 5s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.sea-horizon-transition .horizon {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 168, 255, 0.3) 5%,
        rgba(0, 168, 255, 0.8) 40%,
        rgba(0, 168, 255, 0.6) 80%,
        rgba(0, 168, 255, 0.2) 95%,
        transparent 100%
    );
    box-shadow: 
        0 0 20px rgba(0, 168, 255, 0.6),
        0 0 40px rgba(0, 168, 255, 0.3);
    animation: horizonGlow 4s ease-in-out infinite;
}

@keyframes horizonGlow {
    0%, 100% { 
        opacity: 0.4;
        transform: scaleX(0.95);
    }
    50% { 
        opacity: 0.8;
        transform: scaleX(1);
    }
}

.sea-horizon-transition .moon-reflection {
    position: absolute;
    bottom: 40px;
    left: 35%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(0, 168, 255, 0.15) 30%,
        rgba(0, 168, 255, 0.05) 60%,
        transparent 80%
    );
    filter: blur(20px);
    animation: moonReflection 6s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes moonReflection {
    0%, 100% { 
        transform: translateX(-50%) scaleX(1);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(-50%) scaleX(1.2);
        opacity: 0.6;
    }
}

.sea-horizon-transition .waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(0,168,255,0.2)'/%3E%3C/svg%3E");
    background-size: 120% 100%;
    animation: waveMotion 8s ease-in-out infinite;
    opacity: 0.5;
    mask-image: linear-gradient(to right,
        black 0%,
        black 60%,
        transparent 90%
    );
    -webkit-mask-image: linear-gradient(to right,
        black 0%,
        black 60%,
        transparent 90%
    );
}

@keyframes waveMotion {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-3%) translateY(-3px); }
}

.sea-horizon-transition .sailboat {
    position: absolute;
    bottom: 90px;
    left: -60px;
    width: 50px;
    height: 50px;
    animation: sailing 20s linear infinite;
    filter: drop-shadow(0 0 8px rgba(0, 168, 255, 0.4));
    opacity: 0.8;
}

@keyframes sailing {
    0% { 
        left: -60px;
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    25% {
        transform: translateY(-3px) rotate(2deg);
    }
    50% {
        transform: translateY(2px) rotate(-1deg);
    }
    70% {
        transform: translateY(-2px) rotate(1deg);
        opacity: 0.8;
    }
    80% { 
        left: 65%;
        opacity: 0;
    }
    100% { 
        left: 65%;
        opacity: 0;
    }
}

.sea-sparkles {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 40%;
    height: 40px;
}

.sea-sparkles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    animation: sparkle 3s linear infinite;
    opacity: 0.6;
}

.sea-sparkles span:nth-child(1) { left: 10%; animation-delay: 0s; bottom: 20px; }
.sea-sparkles span:nth-child(2) { left: 25%; animation-delay: 0.5s; bottom: 30px; }
.sea-sparkles span:nth-child(3) { left: 40%; animation-delay: 1s; bottom: 25px; }
.sea-sparkles span:nth-child(4) { left: 55%; animation-delay: 1.5s; bottom: 35px; }
.sea-sparkles span:nth-child(5) { left: 70%; animation-delay: 2s; bottom: 20px; opacity: 0.3; }

@keyframes sparkle {
    0%, 100% { 
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1) translateY(-8px);
    }
}

.sea-horizon-transition::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(10, 15, 28, 0.05) 50%,
        rgba(10, 15, 28, 0.1) 100%
    );
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row,
    .date-inputs {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section,
    .info-card {
        padding: 2rem;
    }
    
    #map {
        height: 300px;
    }
    
    .sea-horizon-transition {
        height: 150px;
        margin-top: -80px;
    }
    
    /* Mobilni kalendar stil */
    .calendar-btn {
        padding: 10px;
    }
    
    .form-group input[type="text"][name="checkIn"],
    .form-group input[type="text"][name="checkOut"] {
        padding-right: 55px;
    }
}

/* Footer sekcija - tamna pozadina za kontinuitet */
footer {
    background: #0a0f1c;
    position: relative;
    z-index: 20;
}

/* ========================================
   AUTOMATSKI ODABIR APARTMANA - CSS STILOVI
   ======================================== */

/* Stilovi za automatski odabrani apartman */
.form-group.auto-selected select {
    background: rgba(0, 168, 255, 0.1) !important;
    border-color: #00a8ff !important;
    animation: highlight-selection 2s ease-in-out;
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2);
}

.form-group.auto-selected label {
    color: #00a8ff !important;
    font-weight: 600;
}

/* Animacija za označavanje odabira */
@keyframes highlight-selection {
    0%, 100% { 
        box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2); 
    }
    50% { 
        box-shadow: 0 0 0 5px rgba(0, 168, 255, 0.4); 
    }
}

/* Poruka o automatskom odabiru */
.auto-select-message {
    font-family: inherit;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.auto-select-message i {
    font-size: 1.2rem;
    color: #ffffff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Hover efekt za automatski odabrani select */
.form-group.auto-selected select:hover {
    background: rgba(0, 168, 255, 0.15) !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

/* Fokus efekt */
.form-group.auto-selected select:focus {
    background: rgba(0, 168, 255, 0.2) !important;
    border-color: #00a8ff !important;
    box-shadow: 0 0 0 5px rgba(0, 168, 255, 0.3);
}

/* Dodaj ikonu uz label za odabrani apartman */
.form-group.auto-selected label::before {
    content: '✓ ';
    color: #4CAF50;
    font-weight: bold;
    margin-right: 5px;
    animation: checkmark-appear 0.5s ease;
}

@keyframes checkmark-appear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsivni stilovi za poruku */
@media (max-width: 768px) {
    .auto-select-message {
        top: 80px !important;
        right: 10px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        transform: translateY(-100%) !important;
        font-size: 0.85rem !important;
    }
    
    .auto-select-message.show {
        transform: translateY(0) !important;
    }
}

@media (max-width: 480px) {
    .auto-select-message {
        padding: 12px 15px !important;
        font-size: 0.8rem !important;
    }
    
    .auto-select-message i {
        font-size: 1rem !important;
    }
}

/* ========================================
   MOBILNI DATE PICKER OPTIMIZACIJE
   ======================================== */

/* Otkrivanje mobilnih uređaja preko CSS */
@media (pointer: coarse) and (hover: none) {
    /* Mobilni uređaji */
    
    .date-input-container {
        position: relative;
        width: 100%;
    }
    
    /* Sakrij custom display inpute na mobilnim uređajima */
    .date-display-input {
        display: none !important;
    }
    
    /* Prikaži native date inpute */
    .date-picker-input {
        position: relative !important;
        opacity: 1 !important;
        pointer-events: all !important;
        width: 100% !important;
        height: auto !important;
        padding: 12px 20px !important;
        border: 2px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 10px !important;
        font-size: 1rem !important;
        background: rgba(255, 255, 255, 0.05) !important;
        color: white !important;
        backdrop-filter: blur(5px) !important;
        transition: all 0.3s ease !important;
    }
    
    /* Focus stanja za mobilne date inpute */
    .date-picker-input:focus {
        outline: none !important;
        border-color: #00a8ff !important;
        background: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2) !important;
    }
    
    /* Disabled stanje za check-out */
    .form-group.disabled .date-picker-input {
        cursor: not-allowed !important;
        opacity: 0.5 !important;
        background: rgba(255, 255, 255, 0.02) !important;
        pointer-events: none !important;
    }
    
    /* Sakrij kalendarske ikone na mobilnim uređajima */
    .calendar-icon {
        display: none !important;
    }
    
    /* Dodatni stilovi za mobile date picker overlay */
    .date-picker-overlay {
        position: static !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Poboljšanja za iOS date picker */
    .date-picker-input::-webkit-datetime-edit {
        color: white;
        padding: 0;
    }
    
    .date-picker-input::-webkit-calendar-picker-indicator {
        background: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300a8ff' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
        cursor: pointer;
        filter: invert(1);
        margin-left: 5px;
    }
    
    /* Android Chrome optimizacije */
    .date-picker-input::-webkit-clear-button {
        display: none;
    }
    
    .date-picker-input::-webkit-inner-spin-button {
        display: none;
    }
    
    /* Success i error stanja za mobilne uređaje */
    .form-group.success .date-picker-input {
        border-color: #4CAF50 !important;
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2) !important;
    }
    
    .form-group.error .date-picker-input {
        border-color: #ff4757 !important;
        box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2) !important;
        animation: shake 0.3s ease-in-out;
    }
    
    /* Auto-selected stanje */
    .form-group.auto-selected .date-picker-input {
        background: rgba(0, 168, 255, 0.1) !important;
        border-color: #00a8ff !important;
        box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2) !important;
    }
}

/* Fallback za starije mobilne browsere */
@media (max-width: 768px) {
    /* Povećaj touch target za mobilne uređaje */
    .date-input-container {
        min-height: 50px;
    }
    
    .date-picker-input {
        min-height: 50px !important;
        font-size: 16px !important; /* Sprječava zoom na iOS */
    }
    
    /* Poboljšanja za manje ekrane */
    .date-inputs {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    /* Optimizacije za auto-select poruku na malim ekranima */
    .auto-select-message {
        position: fixed !important;
        top: 80px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        font-size: 0.85rem !important;
        padding: 12px 15px !important;
        transform: translateY(-100%) !important;
        transition: transform 0.3s ease !important;
    }
    
    .auto-select-message.show {
        transform: translateY(0) !important;
    }
    
    /* Dodatne optimizacije za touch uređaje */
    .form-submit {
        min-height: 50px;
        font-size: 1.1rem;
        padding: 15px 30px;
        width: 100%;
        margin-top: 2rem;
    }
}

/* Specifične optimizacije za iOS */
@supports (-webkit-touch-callout: none) {
    .date-picker-input {
        /* iOS Safari specifični stilovi */
        -webkit-appearance: none;
        appearance: none;
        background-color: rgba(255, 255, 255, 0.05) !important;
        border-radius: 10px !important;
    }
    
    .date-picker-input::-webkit-date-and-time-value {
        text-align: left;
        color: white;
    }
}

/* Android Chrome specifične optimizacije */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .date-picker-input[type="date"] {
        position: relative;
    }
    
    .date-picker-input[type="date"]:before {
        content: attr(placeholder) !important;
        color: rgba(255, 255, 255, 0.4);
        margin-right: 0.5em;
    }
    
    .date-picker-input[type="date"]:valid:before {
        display: none;
    }
}

/* Firefox mobilni optimizacije */
@-moz-document url-prefix() {
    .date-picker-input {
        background-color: rgba(255, 255, 255, 0.05);
        color: white;
    }
}

/* Dodatne animacije za mobilne uređaje */
@media (max-width: 768px) {
    .form-group.focused .date-picker-input {
        transform: scale(1.02);
        transition: all 0.3s ease;
    }
    
    .date-picker-input:active {
        transform: scale(0.98);
    }
    
    /* Poboljšanja za hover stanja na touch uređajima */
    .form-group:hover .date-picker-input {
        border-color: rgba(0, 168, 255, 0.5);
    }
}

/* High DPI ekrani optimizacije */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .date-picker-input::-webkit-calendar-picker-indicator {
        background-size: 20px 20px;
    }
}

/* Landscape orientacija na mobilnim uređajima */
@media (max-width: 768px) and (orientation: landscape) {
    .date-inputs {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
    
    .auto-select-message {
        top: 60px !important;
        font-size: 0.8rem !important;
        padding: 10px 12px !important;
    }
}

/* Accessibilnost poboljšanja */
@media (prefers-reduced-motion: reduce) {
    .date-picker-input,
    .auto-select-message {
        transition: none !important;
        animation: none !important;
    }
}

/* Dark mode optimizacije ako je potrebno */
@media (prefers-color-scheme: dark) {
    .date-picker-input {
        color-scheme: dark;
    }
}



/* ========================================
   12. FOOTER STILOVI (ako nedostaju u style.css)
   ======================================== */

/* Footer transition */
.footer-transition {
    position: relative;
    height: 100px;
    overflow: hidden;
    background: linear-gradient(to bottom, #0a0f1c 0%, transparent 100%);
}

.horizon-line {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 168, 255, 0.5), 
        transparent
    );
}

.horizon-glow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
    background: radial-gradient(ellipse, 
        rgba(0, 168, 255, 0.2) 0%, 
        transparent 70%
    );
    filter: blur(20px);
}

/* Zvijezde */
.horizon-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
}

.horizon-stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.horizon-stars span:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.horizon-stars span:nth-child(2) { top: 30%; left: 50%; animation-delay: 0.5s; }
.horizon-stars span:nth-child(3) { top: 15%; left: 70%; animation-delay: 1s; }
.horizon-stars span:nth-child(4) { top: 40%; left: 30%; animation-delay: 1.5s; }
.horizon-stars span:nth-child(5) { top: 25%; left: 80%; animation-delay: 2s; }

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.5);
    }
}
/* Ako footer stilovi nedostaju */
footer {
    background: #0a0f1c;
    position: relative;
    overflow: hidden;
}

/* Lightbox mora biti iznad svega */
.lightbox {
    z-index: 99999 !important;
}

.lightbox-close,
.lightbox-nav,
.lightbox-info,
.image-counter {
    z-index: 100000 !important;
}

/* ========================================
   FOOTER OPTIMIZACIJA ZA NOVI PRIJELAZ
   ======================================== */

/* Ukloni stari footer-transition */
.footer-transition {
    display: none !important;
}

/* Optimiziraj footer pozadinu */
footer {
    background: #0a0f1c;
    position: relative;
    margin-top: -50px; /* Preklapanje sa prijelazom */
    padding-top: 80px; /* Kompenzacija za preklapanje */
}

/* Ukloni nepotrebne pseudo elemente koji mogu usporavati */
footer::before {
    display: none;
}

/* Pojednostavi footer hero animaciju */
.footer-hero {
    position: relative;
    z-index: 1;
}

/* Smanji broj animiranih elemenata */
.footer-decorations {
    opacity: 0.5; /* Smanji vidljivost za bolje performanse */
}

/* Optimizacija za mobilne uređaje */
@media (max-width: 768px) {
    /* Isključi složene animacije na mobilnim */
    .sea-horizon-transition .sailboat {
        animation: none;
        left: 20%;
    }
    
    .sea-sparkles {
        display: none;
    }
    
    footer {
        margin-top: -30px;
        padding-top: 50px;
    }
}

/* Dodatna optimizacija za spore uređaje */
@media (prefers-reduced-motion: reduce) {
    .sea-horizon-transition * {
        animation: none !important;
    }
    
    .waves {
        display: none;
    }
}

/* Promjena boje horizonta */
.horizon {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.5), /* Zlatni zalazak */
        transparent
    );
}

/* Dodavanje više jedrilica */
.sailboat:nth-child(2) {
    animation-delay: 15s;
    bottom: 70px;
}



/* ========================================
   POPRAVKA ZA VIDLJIVOST PRIJELAZA
   ======================================== */

/* Osiguraj da je prijelaz vidljiv */
.sea-horizon-transition {
    position: relative;
    height: 200px; /* Povećaj visinu */
    margin-top: 0; /* Ukloni negativnu marginu */
    margin-bottom: -50px; /* Samo malo preklapanje s footerom */
    overflow: visible; /* Promijeni na visible */
    z-index: 10;
    background: linear-gradient(to bottom, 
        #0a0f1c 0%, 
        rgba(10, 15, 28, 0.9) 50%,
        rgba(10, 15, 28, 0.7) 100%
    );
}

/* Osiguraj da su elementi vidljivi */
.sea-horizon-transition * {
    position: absolute;
}

/* Povećaj kontrast za zvijezde */
.sea-horizon-transition .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(3px 3px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 10% 60%, rgba(255,255,255,0.7), transparent),
        radial-gradient(3px 3px at 90% 40%, rgba(255,255,255,0.8), transparent);
    background-size: 300px 300px;
    animation: twinkle 5s ease-in-out infinite;
}

/* Pojačaj horizont liniju */
.sea-horizon-transition .horizon {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 2px; /* Deblja linija */
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 168, 255, 0.5) 10%,
        rgba(0, 168, 255, 1) 50%,
        rgba(0, 168, 255, 0.5) 90%,
        transparent 100%
    );
    box-shadow: 
        0 0 30px rgba(0, 168, 255, 0.8),
        0 0 60px rgba(0, 168, 255, 0.4);
    animation: horizonGlow 4s ease-in-out infinite;
}

/* Pojačaj refleksiju mjeseca */
.sea-horizon-transition .moon-reflection {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 80px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(0, 168, 255, 0.2) 30%,
        rgba(0, 168, 255, 0.1) 60%,
        transparent 80%
    );
    filter: blur(15px);
    animation: moonReflection 6s ease-in-out infinite;
}

/* Vidljiviji valovi */
.sea-horizon-transition .waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(0,168,255,0.2)'/%3E%3C/svg%3E");
    background-size: 120% 100%;
    animation: waveMotion 8s ease-in-out infinite;
    opacity: 0.8;
}

/* Dodatni val za dubinu */
.sea-horizon-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    background-size: 150% 100%;
    animation: waveMotion 12s ease-in-out infinite reverse;
    opacity: 0.5;
}

/* Veća jedrilica */
.sea-horizon-transition .sailboat {
    position: absolute;
    bottom: 90px;
    left: -60px;
    width: 50px;
    height: 50px;
    animation: sailing 25s linear infinite;
    filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.5));
}

/* Svjetlucanje vidljivije */
.sea-sparkles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: sparkle 3s linear infinite;
}

/* Dodatni sjaj */
.sea-horizon-transition::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 168, 255, 0.05) 80%,
        rgba(0, 168, 255, 0.1) 100%
    );
    pointer-events: none;
}

/* Ukloni suvišne stilove koji mogu sakriti prijelaz */
.gallery-page {
    padding-bottom: 60px !important; /* Smanji padding */
}

.gallery-page::after {
    display: none !important; /* Privremeno ugasi */
}

/* Osiguraj vidljivost footera */
footer {
    position: relative;
    z-index: 5;
    background: #0a0f1c !important;
}

/* Debug - privremeno dodaj border da vidiš gdje je prijelaz */
.sea-horizon-transition {
    /* border: 2px solid red; */ /* Ukloni ovo nakon testiranja */
}

/* Animacije */
@keyframes sparkle {
    0%, 100% { 
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    50% { 
        opacity: 1;
        transform: scale(1) translateY(-10px);
    }
}

@keyframes sailing {
    0% { 
        left: -60px;
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(3deg);
    }
    50% {
        transform: translateY(3px) rotate(-2deg);
    }
    75% {
        transform: translateY(-3px) rotate(1deg);
    }
    100% { 
        left: calc(100% + 60px);
        transform: translateY(0) rotate(0deg);
    }
}

/* ========================================
   DODATNI CSS ZA NOVA POLJA I reCAPTCHA
   ======================================== */

/* Google reCAPTCHA stilovi */
.g-recaptcha {
    transform: scale(0.77);
    transform-origin: 0 0;
    margin: 10px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Mobilni reCAPTCHA */
@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.75);
        margin: 15px 0;
    }
}

/* Država select stilovi */
#drzava {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300a8ff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

#drzava option {
    background: #1a2332;
    color: white;
    padding: 10px;
}

/* Loading state za submit button */
.form-submit.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

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

/* Poboljšanja za mobilne uređaje */
@media (max-width: 768px) {
    /* Povećaj touch targete */
    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 50px;
        font-size: 16px; /* Sprječava zoom na iOS */
    }
    
    .form-submit {
        min-height: 50px;
        font-size: 1.1rem;
        width: 100%;
        margin-top: 2rem;
    }
    
    /* Optimiziraj grid na malim ekranima */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .date-inputs {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}

/* Form validation states */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #ff4757 !important;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2) !important;
    animation: shake 0.3s ease-in-out;
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2) !important;
}

/* Hover effects za select elementi */
.form-group select:hover {
    border-color: rgba(0, 168, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.form-group select:focus {
    outline: none;
    border-color: #00a8ff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2);
}

/* Loading overlay za cijelu formu */
.contact-form-section.loading {
    position: relative;
}

.contact-form-section.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-radius: 20px;
}

.contact-form-section.loading::after {
    content: 'Šalje se poruka...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    z-index: 1001;
    text-align: center;
    font-weight: 600;
}

/* Accessibility poboljšanja */
.form-group label {
    cursor: pointer;
    transition: color 0.3s ease;
}

.form-group.focused label {
    color: #00a8ff;
}

/* Focus indicators */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid #00a8ff;
    outline-offset: 2px;
}

/* Dark mode compatibility (ako je potrebno) */
@media (prefers-color-scheme: dark) {
    .g-recaptcha {
        filter: invert(1) hue-rotate(180deg);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        border-width: 3px;
    }
    
    .form-submit {
        border: 3px solid white;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .form-group input,
    .form-group textarea,
    .form-group select,
    .form-submit {
        transition: none !important;
        animation: none !important;
    }
    
    .auto-select-message {
        transition: none !important;
        animation: none !important;
    }
}

/* ========================================
   FINALNI CSS ZA MOBILNE DATE PICKERE
   ======================================== */

/* MOBILNI UREĐAJI - Prioritetni stilovi */
@media (max-width: 768px), (pointer: coarse) {
    
    /* SAKRIJ desktop elemente potpuno */
    .date-display-input {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .calendar-icon {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* PRIKAŽI i OPTIMIZIRAJ native date inpute */
    .date-picker-input {
        /* Layout */
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 52px !important;
        
        /* Visibility */
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
        z-index: 1 !important;
        
        /* Spacing */
        padding: 16px 20px !important;
        margin: 0 !important;
        
        /* Border & Background */
        border: 2px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(5px) !important;
        
        /* Typography */
        font-size: 16px !important; /* KRITIČNO za iOS - sprječava zoom */
        font-family: inherit !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
        color: white !important;
        text-align: left !important;
        letter-spacing: 0.5px !important;
        
        /* Box Model */
        box-sizing: border-box !important;
        outline: none !important;
        
        /* Appearance Reset */
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        
        /* Transitions */
        transition: all 0.3s ease !important;
        
        /* Positioning override */
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
    
    /* Container optimizacija */
    .date-input-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 52px !important;
        display: block !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Overlay reset na mobilnim uređajima */
    .date-picker-overlay {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        pointer-events: none !important;
        background: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 0 !important;
    }
    
    /* Focus stanja */
    .date-picker-input:focus {
        border-color: #00a8ff !important;
        background: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2) !important;
        outline: none !important;
        transform: none !important;
    }
    
    /* Disabled stanje */
    .date-picker-input:disabled,
    .form-group.disabled .date-picker-input {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border-color: rgba(255, 255, 255, 0.05) !important;
        pointer-events: none !important;
    }
    
    /* Success state */
    .form-group.success .date-picker-input {
        border-color: #4CAF50 !important;
        background: rgba(76, 175, 80, 0.1) !important;
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2) !important;
    }
    
    /* Error state */
    .form-group.error .date-picker-input {
        border-color: #ff4757 !important;
        background: rgba(255, 71, 87, 0.1) !important;
        box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2) !important;
        animation: shake 0.3s ease-in-out;
    }
    
    /* Hover states (za uređaje koji podržavaju hover) */
    @media (hover: hover) {
        .date-picker-input:hover:not(:disabled) {
            border-color: rgba(0, 168, 255, 0.5) !important;
            background: rgba(255, 255, 255, 0.08) !important;
        }
    }
}

/* iOS SPECIFIČNI STILOVI */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .date-picker-input {
            /* iOS Safari optimizacije */
            -webkit-appearance: none !important;
            background-color: rgba(255, 255, 255, 0.05) !important;
            color: white !important;
            border-radius: 10px !important;
        }
        
        /* iOS placeholder/vrednost stilovi */
        .date-picker-input::-webkit-date-and-time-value {
            color: white !important;
            text-align: left !important;
            font-size: 16px !important;
            line-height: 1.4 !important;
        }
        
        /* iOS kalendar ikona */
        .date-picker-input::-webkit-calendar-picker-indicator {
            background: none !important;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300a8ff' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
            cursor: pointer !important;
            filter: invert(1) !important;
            opacity: 0.8 !important;
            margin-left: auto !important;
            margin-right: 10px !important;
        }
        
        /* Ukloni iOS clear button */
        .date-picker-input::-webkit-clear-button {
            display: none !important;
        }
        
        /* Ukloni iOS spin button */
        .date-picker-input::-webkit-inner-spin-button {
            display: none !important;
        }
    }
}

/* ANDROID CHROME OPTIMIZACIJE */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    @media (max-width: 768px) {
        .date-picker-input[type="date"] {
            position: relative !important;
            color: white !important;
            background: rgba(255, 255, 255, 0.05) !important;
        }
        
        /* Android placeholder handling */
        .date-picker-input[type="date"]:invalid {
            color: rgba(255, 255, 255, 0.6) !important;
        }
        
        .date-picker-input[type="date"]:valid {
            color: white !important;
        }
    }
}

/* EXTRA MALI EKRANI */
@media (max-width: 480px) {
    .date-picker-input {
        min-height: 50px !important;
        font-size: 16px !important;
        padding: 15px 18px !important;
    }
    
    .date-input-container {
        min-height: 50px !important;
    }
    
    /* Povećaj gap između datuma na malim ekranima */
    .date-inputs {
        gap: 1.5rem !important;
    }
}

/* LANDSCAPE ORIENTACIJA NA MOBILNIM UREĐAJIMA */
@media (max-width: 768px) and (orientation: landscape) {
    .date-picker-input {
        min-height: 45px !important;
        padding: 12px 18px !important;
        font-size: 16px !important;
    }
}

/* HIGH DPI EKRANI */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    @media (max-width: 768px) {
        .date-picker-input::-webkit-calendar-picker-indicator {
            background-size: 20px 20px !important;
        }
    }
}

/* ACCESSIBILITY - REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .date-picker-input {
        transition: none !important;
        animation: none !important;
    }
}

/* DARK MODE COMPATIBILITY */
@media (prefers-color-scheme: dark) {
    @media (max-width: 768px) {
        .date-picker-input {
            color-scheme: dark !important;
        }
    }
}

/* DODATNE OPTIMIZACIJE ZA FORM GRUPE */
@media (max-width: 768px) {
    /* Form grupa container */
    .form-group {
        margin-bottom: 1.5rem !important;
        position: relative !important;
    }
    
    /* Label stilovi na mobilnim uređajima */
    .form-group label {
        display: block !important;
        margin-bottom: 0.5rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 500 !important;
        font-size: 1rem !important;
    }
    
    /* Focus state za label */
    .form-group.focused label,
    .form-group.success label {
        color: #00a8ff !important;
    }
    
    /* Error state za label */
    .form-group.error label {
        color: #ff4757 !important;
    }
    
    /* Date inputs grid na mobilnim uređajima */
    .date-inputs {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }
}

