/* Custom Fonts */
@font-face {
    font-family: PustBold;
    src: url('/assets/fonts/Arlette Bold.otf') format('opentype');
}

/* Base Layout */
body {
    background-color: #1a1a1a;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.slika-zadaj {
    position: relative;
    background-image: url("../assets/images/porocna-knjiga.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    min-height: 100vh;
}

/* Dark Overlay */
.slika-zadaj::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.slika-zadaj > .container-fluid {
    position: relative;
    z-index: 2;
}

/* Wedding Card (Sidebar) */
.wedding-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    -webkit-box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    color: white;
}

.main-logo {
    max-width: 150px;
    -webkit-filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
            filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

/* Form Styles */
.input-group-custom {
    position: relative;
    margin-bottom: 22px; /* Fixed space for error */
}

.custom-input {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    color: #333 !important;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.custom-input:focus {
    -webkit-box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.4) !important;
            box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.4) !important;
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
}

/* ERROR MESSAGE FIX: Absolute positioning prevents "jumping" */
.input-group-custom .invalid-feedback, 
.input-group-custom [id$="-error"] {
    position: absolute;
    bottom: -20px;
    left: 5px;
    font-size: 0.7rem;
    color: #ffbaba !important;
    margin: 0;
    font-weight: 600;
}

/* Button Base State */
.btn-submit {
    background: #ffffff !important;
    color: #b58921 !important; /* Goldish text color */
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 12px;
    padding: 14px;
    border: 2px solid transparent; /* Prepare for hover border */
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

/* Button Hover State - FIXING THE WHITE ON WHITE */
.btn-submit:hover {
    background: #ffffff !important; /* Keep background white */
    color: #8c6a19 !important;      /* Make text a slightly darker gold */
    border-color: #d4af37;          /* Add a gold border */
    -webkit-transform: translateY(-3px);
            transform: translateY(-3px);
    -webkit-box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Ensure the image/icon doesn't have issues on hover */
.btn-submit:hover img {
    -webkit-filter: brightness(0.8);
            filter: brightness(0.8); /* Slightly darkens the icon on hover */
}

/* Message Grid Cards */
.message-card {
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: white;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.message-card:hover {
    -webkit-transform: translateY(-5px);
            transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.icon-circle {
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin-bottom: 10px;
}

.user-msg {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.4;
}

.card-divider {
    width: 40px;
    margin: 10px auto;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Counter */
.counter-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 15px;
}

.heart-icon-wrapper {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-animation: heartPulse 2s infinite;
            animation: heartPulse 2s infinite;
}

@-webkit-keyframes heartPulse {
    0% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.15); transform: scale(1.15); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}

@keyframes heartPulse {
    0% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.15); transform: scale(1.15); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}

.counter-label { font-size: 0.65rem; opacity: 0.8; }
.counter-number { font-size: 1.2rem; font-weight: 800; }

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .slika-zadaj {
        background-attachment: scroll; /* Fixed bg is laggy on mobile */
    }
    .sticky-lg-top {
        position: relative !important;
        top: 0 !important;
    }
    .main-logo {
        width: 120px;
    }
}