
/* =====================================================
   FMPVS – PRETRAGA NOVČANIH POTICAJA
   ===================================================== */

.fmpvs-search-wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 25px auto 40px !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    color: #333;
}

/* Naslov */
.fmpvs-search-heading {
    margin: 0 0 12px !important;
    padding-bottom: 15px !important;
    color: #2a327f !important;
    font-size: 27px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    border-bottom: 2px solid #2a327f !important;
}

/* Opis */
.fmpvs-search-description {
    margin: 0 0 25px !important;
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Kartica */
.fmpvs-search-card {
    width: 100% !important;
    padding: 30px !important;
    background: #fff !important;
    border: 1px solid #e5e7ef !important;
    border-radius: 9px !important;
    box-shadow: 0 4px 18px rgba(25, 35, 90, 0.07) !important;
    box-sizing: border-box !important;
}

/* Naslov kartice */
.fmpvs-search-card-title {
    margin: 0 0 25px !important;
    padding-bottom: 15px !important;
    color: #2a327f !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #e8e9f0 !important;
}

/* =====================================================
   GRID – TRI JEDNAKE KOLONE
   ===================================================== */

.fmpvs-search-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 28px !important;
    row-gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
}

/* WordPress automatski ubacuje p elemente */
.fmpvs-search-grid > p {
    display: none !important;
}

/* Kolone */
.fmpvs-search-grid > .fmpvs-search-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Polja */
.fmpvs-search-column .fmpvs-field {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Uklanjanje praznih redova koje ubacuje WordPress */
.fmpvs-field p {
    display: contents !important;
}

.fmpvs-field br {
    display: none !important;
}

/* Labele */
.fmpvs-field label {
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

/* Input i select */
.fmpvs-search-wrapper input[type="text"],
.fmpvs-search-wrapper input[type="number"],
.fmpvs-search-wrapper select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 45px !important;
    min-height: 45px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #d9dce7 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: inherit !important;
    font-size: 13px !important;
    line-height: normal !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}

/* Fokus */
.fmpvs-search-wrapper input:focus,
.fmpvs-search-wrapper select:focus {
    border-color: #2a327f !important;
    box-shadow: 0 0 0 3px rgba(42, 50, 127, .10) !important;
}

/* Placeholder */
.fmpvs-search-wrapper input::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

/* Select */
.fmpvs-search-wrapper select {
    cursor: pointer !important;
}

/* Akcije */
.fmpvs-search-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    margin-top: 30px !important;
    padding-top: 22px !important;
    border-top: 1px solid #e8e9f0 !important;
}

/* Dugmad */
.fmpvs-search-wrapper button,
.fmpvs-search-wrapper input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 45px !important;
    padding: 0 25px !important;
    margin: 0 !important;
    background: #2a327f !important;
    color: #fff !important;
    border: 1px solid #2a327f !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
}

.fmpvs-search-wrapper button:hover,
.fmpvs-search-wrapper input[type="submit"]:hover {
    background: #1e255f !important;
    border-color: #1e255f !important;
    color: #fff !important;
}

/* Dugme za reset */
.fmpvs-search-wrapper .fmpvs-reset-button {
    background: #fff !important;
    color: #555 !important;
    border-color: #d9dce7 !important;
}

/* Rezultati */
.fmpvs-search-results {
    width: 100% !important;
    margin-top: 30px !important;
}

.fmpvs-search-results table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.fmpvs-search-results th {
    padding: 13px 12px !important;
    background: #2a327f !important;
    color: #fff !important;
    font-size: 12px !important;
    text-align: left !important;
}

.fmpvs-search-results td {
    padding: 12px !important;
    border-bottom: 1px solid #e8e9f0 !important;
    font-size: 12px !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 991px) {
    .fmpvs-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 20px !important;
    }

    .fmpvs-search-card {
        padding: 23px !important;
    }
}

@media (max-width: 600px) {
    .fmpvs-search-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 22px !important;
    }

    .fmpvs-search-card {
        padding: 18px !important;
    }

    .fmpvs-search-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .fmpvs-search-wrapper button,
    .fmpvs-search-wrapper input[type="submit"] {
        width: 100% !important;
    }
}
