/* ============================================================
   Form Application Styles - PT. Bintang Mitra Pratama
   ============================================================ */

:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --light: #f8fafc;
    --dark: #1e293b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f5f9;
    color: #334155;
}

/* ============================================================
   APP WRAPPER
   ============================================================ */
.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */
.form-header {
    background: linear-gradient(135deg, #2d3a47 0%, #263340 100%);
    color: white;
    padding: 18px 16px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.header-logo {
    flex-shrink: 0;
    display: none;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.header-title {
    text-align: center;
    width: 100%;
}

.header-title h1 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.2;
}

.header-title p {
    font-size: 0.85em;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.company-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .form-header {
        padding: 14px 12px;
    }

    .header-content {
        gap: 12px;
        flex-direction: column;
    }

    .logo-img {
        height: 45px;
    }

    .header-title {
        width: 100%;
    }

    .header-title h1 {
        font-size: 1.2em;
        margin-bottom: 2px;
    }

    .header-title p {
        font-size: 0.8em;
    }

    .company-logo {
        height: 20px;
    }
}

@media (max-width: 480px) {
    .form-header {
        padding: 12px 10px;
    }

    .header-content {
        gap: 10px;
        flex-direction: column;
    }

    .logo-img {
        height: 40px;
    }

    .header-title {
        width: 100%;
    }

    .header-title h1 {
        font-size: 1.1em;
        margin-bottom: 1px;
    }

    .header-title p {
        font-size: 0.75em;
    }

    .company-logo {
        height: 18px;
    }
}

.progress-indicator {
    max-width: 1200px;
    margin: 8px auto 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--success);
    width: 0%;
    transition: width 0.3s ease;
}

/* ============================================================
   FORM CONTAINER
   ============================================================ */
.form-container {
    flex: 1;
    max-width: 1000px;
    margin: 20px auto;
    width: 100%;
    padding: 0 16px;
}

@media (max-width: 768px) {
    .form-container {
        margin: 15px auto;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .form-container {
        margin: 10px auto;
        padding: 0 10px;
    }
}

form {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* ============================================================
   FORM TABS
   ============================================================ */
.form-tabs {
    border-bottom: 2px solid var(--border);
    background-color: white;
    overflow-x: auto;
    padding: 0 20px;
}

.nav-tabs {
    border: none;
    display: flex;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.nav-tabs .nav-link {
    border: none;
    color: #64748b;
    padding: 16px 20px;
    font-weight: 500;
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    background-color: rgba(59, 130, 246, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background-color: white;
    border-bottom-color: var(--primary);
}

.nav-tabs .nav-link i {
    font-size: 1.1em;
}

/* Responsive tabs */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 12px 16px;
        font-size: 0.9em;
    }

    .nav-tabs .nav-link span {
        display: none;
    }

    .nav-tabs .nav-link i {
        margin: 0 !important;
    }
}

/* ============================================================
   TAB CONTENT
   ============================================================ */
.tab-content {
    padding: 30px;
}

.tab-pane {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   SECTION STYLING
   ============================================================ */
.section-title {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.section-title h2 {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-title h2 i {
    color: var(--primary);
    font-size: 1.3em;
}

.section-title p {
    margin: 0;
    font-size: 0.95em;
    color: #64748b;
}

.form-section {
    background-color: var(--light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.subsection-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary);
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.subsection-title:first-child {
    margin-top: 0;
}

/* ============================================================
   FORM LAYOUT - VERTICAL (STACKED)
   ============================================================ */
.row {
    display: flex;
    flex-direction: column;
}

.col-md-6,
.col-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-label {
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.95em;
    font-weight: 500;
    display: block;
}

/* Tambahkan bullet biru ke semua label dengan class fw-bold */
.form-label.fw-bold::before {
    content: '● ';
    color: var(--primary);
    font-size: 1.1em;
    margin-right: 4px;
    font-weight: bold;
}

.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success);
}

.invalid-feedback {
    display: block;
    color: var(--danger);
    font-size: 0.85em;
    margin-top: 4px;
}

.valid-feedback {
    display: block;
    color: var(--success);
    font-size: 0.85em;
    margin-top: 4px;
}

/* ============================================================
   FORM GROUPS & ROWS
   ============================================================ */
.row.g-3 > * {
    padding-left: calc(0.75rem);
    padding-right: calc(0.75rem);
}

.row.g-3 {
    margin-left: calc(-0.75rem);
    margin-right: calc(-0.75rem);
    margin-top: calc(-0.75rem);
}

.row.g-3 > * {
    margin-top: 0.75rem;
}

/* ============================================================
   PHOTO UPLOAD
   ============================================================ */
.photo-upload-area,
.document-upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: rgba(59, 130, 246, 0.03);
    transition: all 0.2s ease;
}

.photo-upload-area:hover,
.document-upload-area:hover {
    border-color: var(--primary);
    background-color: rgba(59, 130, 246, 0.08);
}

.photo-upload-area .form-control,
.document-upload-area .form-control {
    border: 1px solid var(--border);
}

#photoPreview {
    margin-top: 15px;
}

#photoPreview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* ============================================================
   CHECKBOX & RADIO
   ============================================================ */
.form-check {
    padding-left: 0;
    margin-bottom: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    margin-right: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    border-radius: 8px;
    border: 1px solid;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    flex-shrink: 0;
    font-size: 1.1em;
    margin-top: 2px;
}

.alert-info {
    background-color: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    color: #0284c7;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #15803d;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #b91c1c;
}

/* ============================================================
   FORM ACTIONS
   ============================================================ */
.form-actions {
    padding: 20px 30px;
    background-color: var(--light);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.form-actions button {
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-actions button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #16a34a;
    border-color: #16a34a;
}

.btn-outline-secondary {
    color: var(--warning);
    border-color: var(--warning);
    background-color: #fffbf0;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background-color: var(--warning);
    color: white;
    border-color: var(--warning);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
}

.btn-light {
    background-color: #f0f4ff;
    border-color: var(--info);
    color: var(--info);
    font-weight: 600;
}

.btn-light:hover {
    background-color: var(--info);
    color: white;
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    color: white;
    font-size: 1.1em;
    font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .form-header {
        padding: 25px 15px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        width: 100%;
    }

    .header-logo {
        font-size: 2em;
        display: none;
    }

    .header-title {
        width: 100%;
    }

    .header-title h1 {
        font-size: 1.4em;
    }

    .form-container {
        margin: 15px auto;
        padding: 0 15px;
    }

    .tab-content {
        padding: 20px 15px;
    }

    .form-actions {
        flex-direction: column;
        padding: 15px;
    }

    .action-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .action-buttons button {
        flex: 1;
        min-width: 120px;
    }

    .section-title h2 {
        font-size: 1.2em;
    }
}

@media (max-width: 576px) {
    .form-header {
        padding: 20px 10px;
    }

    .header-title h1 {
        font-size: 1.2em;
    }

    .header-title p {
        font-size: 0.85em;
    }

    .form-container {
        margin: 10px auto;
        padding: 0 10px;
    }

    .tab-content {
        padding: 15px 10px;
    }

    .form-control,
    .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .form-actions {
        padding: 12px;
        gap: 8px;
    }

    .form-actions button {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    .action-buttons {
        gap: 8px;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.fw-bold {
    font-weight: 600;
}

.text-danger {
    color: var(--danger);
}

.text-muted {
    color: #64748b;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.d-block {
    display: block;
}

.d-none {
    display: none !important;
}

/* ============================================================
   SIGNATURE CANVAS
   ============================================================ */
.signature-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(59, 130, 246, 0.02) 100%);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid rgba(59, 130, 246, 0.1);
    margin-top: 20px;
}

.signature-canvas-wrapper {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

#signatureCanvas {
    display: block;
    width: 100%;
    max-width: 400px;
    height: 150px;
    border: 3px solid var(--border);
    border-radius: 8px;
    background: white;
    cursor: crosshair;
    touch-action: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#signatureCanvas:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

#signatureCanvas.signed {
    border-color: var(--success);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.signature-canvas-wrapper .d-flex {
    gap: 10px;
    margin-top: 15px;
}

.signature-canvas-wrapper .btn-sm {
    padding: 8px 16px;
    font-size: 0.9em;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.signature-canvas-wrapper .btn-sm:hover {
    transform: translateY(-2px);
}

.signature-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9em;
    display: none;
    animation: slideInUp 0.3s ease;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
}

.signature-status i {
    font-size: 1.2em;
    flex-shrink: 0;
}

.signature-status.success {
    background-color: #dcfce7;
    color: #15803d;
    border-left-color: #22c55e;
}

.signature-status.success i {
    color: #22c55e;
}

.signature-status.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.signature-status.error i {
    color: #ef4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@media (max-width: 576px) {
    #signatureCanvas {
        max-width: 100%;
        border-width: 2px;
    }

    .signature-canvas-wrapper {
        padding: 15px;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   AUTO-SAVE INDICATOR
   ============================================================ */
.auto-save-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #22c55e;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    font-size: 0.9em;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.auto-save-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.auto-save-indicator i {
    font-size: 1.1em;
    animation: checkmark 0.5s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

@media (max-width: 576px) {
    .auto-save-indicator {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 0.85em;
    }
}

form {
    animation: slideInUp 0.4s ease;
}

/* ============================================================
   REQUIRED DOCUMENTS MODAL
   ============================================================ */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header.bg-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 25px;
    border-radius: 12px 12px 0 0;
}

.modal-header.bg-gradient .modal-title {
    font-size: 1.35em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header.bg-gradient .modal-title i {
    font-size: 1.3em;
}

.modal-header.bg-gradient .btn-close {
    filter: invert(1) brightness(0.8);
}

.modal-body {
    padding: 30px;
    background-color: #fafbfc;
}

.documents-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.document-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.document-item:hover {
    border-color: #3b82f6;
    background-color: #f0f7ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.document-item .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    gap: 12px;
}

.document-item .form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.document-item .form-check-input:checked {
    background-color: #22c55e;
    border-color: #22c55e;
}

.document-item .form-check-label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
    font-weight: 500;
}

.doc-icon {
    font-size: 1.3em;
    color: #ef4444;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.doc-icon.fa-id-card {
    color: #3b82f6;
}

.doc-icon.fa-image {
    color: #f59e0b;
}

.doc-name {
    flex: 1;
    color: #1e293b;
    font-weight: 600;
}

.doc-format {
    font-size: 0.85em;
    color: #94a3b8;
    font-weight: 400;
    padding: 2px 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    white-space: nowrap;
}

.document-item:has(.form-check-input:checked) {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

.document-item:has(.form-check-input:checked) .doc-name {
    color: #15803d;
}

.alert-custom {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid;
}

.alert-custom i {
    font-size: 1.2em;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-custom .alert-content {
    flex: 1;
}

.alert-warning.alert-custom {
    background-color: #fffbf0;
    border-color: #fcd34d;
    color: #92400e;
}

.alert-warning.alert-custom i {
    color: #f59e0b;
}

.alert-info.alert-custom {
    background-color: #f0f9ff;
    border-color: #bae6fd;
    color: #0c4a6e;
}

.alert-info.alert-custom i {
    color: #0ea5e9;
}

.dont-show-again {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dont-show-again .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.dont-show-again .form-check-label {
    margin: 0;
    cursor: pointer;
    font-size: 0.95em;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dont-show-again i {
    font-size: 0.9em;
    color: #94a3b8;
}

.modal-footer {
    padding: 20px 30px;
    border: none;
    background-color: #fff;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-footer .btn-outline-secondary {
    color: #64748b;
    border-color: #cbd5e1;
    background-color: white;
}

.modal-footer .btn-outline-secondary:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.modal-footer .btn-success {
    background-color: #22c55e;
    border-color: #22c55e;
    color: white;
}

.modal-footer .btn-success:hover {
    background-color: #16a34a;
    border-color: #16a34a;
}

/* ============================================================
   RESPONSIVE - REQUIRED DOCUMENTS MODAL
   ============================================================ */
@media (max-width: 768px) {
    .modal-header.bg-gradient {
        padding: 20px;
    }

    .modal-header.bg-gradient .modal-title {
        font-size: 1.1em;
    }

    .modal-body {
        padding: 20px;
    }

    .document-item {
        padding: 14px;
    }

    .doc-icon {
        font-size: 1.1em;
        width: 25px;
    }

    .modal-footer {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .modal-footer .btn {
        flex: 1;
        min-width: 120px;
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .modal-dialog {
        margin: 10px;
    }

    .modal-header.bg-gradient {
        padding: 16px;
    }

    .modal-header.bg-gradient .modal-title {
        font-size: 1em;
    }

    .modal-header.bg-gradient .modal-title i {
        font-size: 1.1em;
    }

    .modal-body {
        padding: 16px;
    }

    .document-item {
        padding: 12px;
    }

    .document-item .form-check-label {
        gap: 10px;
        font-size: 0.9em;
    }

    .doc-icon {
        font-size: 1em;
        width: 22px;
    }

    .doc-name {
        font-size: 0.95em;
    }

    .doc-format {
        font-size: 0.8em;
        padding: 2px 6px;
    }

    .modal-footer {
        padding: 12px 16px;
    }

    .modal-footer .btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }
}
