/* Base Form Styles */
.stipendija-forma {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .stipendija-forma h3 {
        color: #911005;
        margin: 1rem 0 0.5rem 0;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #e0e0e0;
    }

    .stipendija-forma label {
        display: flex;
        flex-direction: column;
        font-weight: 600;
        color: #333;
        font-size: 1rem;
    }

    .stipendija-forma input,
    .stipendija-forma select {
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
        border-radius: 8px;
        border: 1.5px solid #bbb;
        margin-top: 0.35rem;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

        .stipendija-forma input:focus,
        .stipendija-forma select:focus {
            outline: none;
            border-color: #007cba;
            box-shadow: 0 0 5px rgba(0,124,186,0.5);
        }

        /* File input specific styles */
        .stipendija-forma input[type="file"] {
            padding: 0.5rem;
            background: white;
            border: 1.5px dashed #bbb;
        }

            .stipendija-forma input[type="file"]:focus {
                border-style: solid;
                border-color: #007cba;
            }

    .stipendija-forma small {
        font-size: 0.85rem;
        color: #666;
        font-weight: normal;
        margin-top: 0.25rem;
        font-style: italic;
    }

/* Checkbox styles */
.checkbox-group {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f0f0f0;
    border-radius: 8px;
    border-left: 4px solid #1462e0;
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 600;
    color: #333;
}

    .checkbox-label input[type="checkbox"] {
        margin-top: 0.25rem;
        transform: scale(1.2);
    }

.stipendija-forma button {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    background-color: #1462e0;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.25s ease, transform 0.15s ease;
    align-self: flex-start;
    margin-top: 1rem;
}

    .stipendija-forma button:hover,
    .stipendija-forma button:focus {
        background-color: #560591;
        transform: scale(1.05);
        outline: none;
    }

/* Required field indicator */
.stipendija-forma label:has(input[required])::after {
    content: "*";
    color: #911005;
    margin-left: 0.25rem;
}

/* Messages */
#rdb-form-message {
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.75rem;
}

.rezervacija-success {
    padding: 1rem 1.2rem;
    background-color: #e6f4ea;
    color: #237a4b;
    border: 1.5px solid #9fd6a7;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: fadeInSuccess 0.4s ease-in-out;
    box-shadow: 0 2px 6px rgba(35,122,75,0.25);
}

.rezervacija-error {
    padding: 1rem 1.2rem;
    background-color: #fbe9e9;
    color: #a94442;
    border: 1.5px solid #e09a9a;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(169,68,66,0.25);
}

.rdb-error-border {
    border-color: #d9534f !important;
    box-shadow: 0 0 6px rgba(217, 83, 79, 0.6);
}

@keyframes fadeInSuccess {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
