:root {
    --primary: #0d6efd;
    --success: #28a745;
    --danger: #dc3545;
    --gray-100: #f8f9fa;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --radius: 6px;
    --transition: all 0.25s ease;
    --font-base: 12px;
}


.form-rules {
    list-style: none; /* Remove default bullets */
    padding: 0.5rem 1rem;
    background-color: #f8f9fa; /* Light gray background */
    border-left: 4px solid var(--primary); /* Primary colored border */
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}

.form-rules li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-rules li::before {
    content: '✔'; /* Custom bullet */
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

#applicationForm {
    margin: 0 auto;
    font-size: var(--font-base);
    line-height: 1.5;
    color: #212529;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#applicationForm label.form-label {
    font-size: 0.80rem;
    font-weight: 500;
    margin-bottom: 3px;
}

#applicationForm input.form-control,
#applicationForm select.form-control,
#applicationForm textarea.form-control {
    font-size: 0.80rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background-color: #fff;
    transition: var(--transition);
}

#applicationForm input:focus,
#applicationForm select:focus,
#applicationForm textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(13,110,253,0.25);
    outline: none;
}

#applicationForm h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 1rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--gray-300);
}


.icon-only {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.btn-add-doc.icon-only { background-color: var(--primary); color: #fff; }
.btn-add-doc.icon-only:hover { background-color: #0b5ed7; }
.btn-remove-file.icon-only { background-color: var(--danger); color: #fff; }
.btn-remove-file.icon-only:hover { background-color: #bb2d3b; }

/* ছবি আপলোড সেকশন */
.photo-section .image-overlay {
    width: 180px;
    height: 180px;
    margin-left: auto;      /* ডান দিকে nicely position */
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    position: relative;
}
.photo-section .image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.3s ease;
}
.photo-section .image-overlay:hover img {
    transform: scale(1.05);
}
.photo-section .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}
.photo-section .image-overlay:hover .overlay {
    opacity: 1;
}


.preview-area a:hover { text-decoration: underline; }

.d-flex.gap-2 { display: flex; gap: 0.5rem; align-items: center; }

@media (max-width: 576px) {
    .icon-only { width: 28px; height: 28px; font-size: 1rem; }
}

fieldset {
    border: 1px solid var(--primary);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Updated modern legend style */
legend {
    font-weight: 600;
    color: #fff; /* White text */
    background-color: var(--primary); /* Primary color background */
    padding: 0.25rem 0.75rem; /* Slightly more padding */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* Subtle shadow for depth */
    font-size: 0.95rem;
}
