 :root {
     --primary: #6366f1;
     --primary-dark: #4f46e5;
     --primary-light: #818cf8;
     --success: #10b981;
     --gray-100: #f3f4f6;
     --gray-200: #e5e7eb;
     --gray-500: #6b7280;
     --gray-600: #4b5563;
 }



 .card-modern {
     border: none;
     border-radius: 20px;
     box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07);
     background: #fff; border: 1px solid #ccc;
 }

 .header-title {
     color: var(--primary-dark);
     font-weight: 800;
 }

 /* Stepper */
 .stepper {
     display: flex;
     justify-content: center;
     gap: 6rem;
     margin: 2rem 0 2.5rem;
     position: relative;
 }

 .stepper::before {
     content: '';
     position: absolute;
     top: 18px;
     left: 12%;
     right: 12%;
     height: 3px;
     background: var(--gray-200);
     z-index: 0;
 }

 .progress-line {
     position: absolute;
     top: 18px;
     left: 12%;
     height: 3px;
     background: var(--primary);
     transition: width 0.4s;
     z-index: 0;
 }

 .step-circle {
     width: 38px;
     height: 38px;
     border-radius: 50%;
     background: var(--gray-200);
     color: white;
     font-weight: 700;
     display: flex;
     align-items: center;
     justify-content: center;
     margin: 0 auto 0.5rem;
     transition: all 0.25s;
     position: relative;
     z-index: 9;
 }

 .step.active .step-circle,
 .step.completed .step-circle {
     background: var(--primary);
     transform: scale(1.08);
 }

 .step-title {
     font-size: 0.85rem;
     font-weight: 600;
     color: var(--gray-600);
 }

 .step.active .step-title,
 .step.completed .step-title {
     color: var(--primary-dark);
 }

 .form-step {
     display: none;
     animation: fadeIn 0.35s ease forwards;
 }

 .form-step.active {
     display: block;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .section-title {
     position: relative;
     color: var(--primary-dark);
     font-weight: 700;
     font-size: 1.18rem;
     margin-bottom: 2rem;
     padding-left: 1.1rem;
     border-left: 5px solid var(--primary);
     padding-bottom: 0.35rem;
 }

 .section-title i {
     margin-right: 0.6rem;
     color: var(--primary);
 }

 .form-control,
 .form-select {
     height: 42px !important;
     padding: 0.5rem 0.9rem;
     font-size: 0.95rem;
     border-radius: 10px;
     border: 1px solid #d1d5db;
 }

 .form-control:focus,
 .form-select:focus {
     border-color: var(--primary-light);
     box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
 }

 textarea.form-control {
     height: auto;
     min-height: 80px;
 }

 .gender-group {
     display: flex;
     gap: 2.2rem;
     flex-wrap: wrap;
 }

 .gender-option {
     position: relative;
     display: flex;
     align-items: center;
     cursor: pointer;
 }

 .gender-option input[type="radio"] {
     position: absolute;
     opacity: 0;
     width: 0;
     height: 0;
 }

 .gender-option .radio-outer {
     width: 19px;
     height: 19px;
     border: 1px solid #9ca3af;
     border-radius: 50%;
     margin-right: 10px;
     position: relative;
     flex-shrink: 0;
     transition: all 0.2s;
     background: white;
 }

 .gender-option:hover .radio-outer {
     border-color: var(--primary-light);
 }

 .gender-option input:checked+.radio-outer {
     border-color: var(--primary);
     background: white;
 }

 .gender-option input:checked+.radio-outer::after {
     content: '';
     position: absolute;
     top: 3px;
     left: 3px;
     width: 12px;
     height: 12px;
     background: var(--primary);
     border-radius: 50%;
 }

 .gender-option .label-text {
     font-size: 0.98rem;
     color: #374151;
 }

 .multi-select-btn {
     height: 42px;
     border: 1px solid #d1d5db;
     border-radius: 10px;
     padding: 0.4rem 0.9rem;
     background: white;
     display: flex;
     flex-wrap: wrap;
     gap: 0.4rem;
     align-items: center;
     cursor: pointer;
 }

 .tag {
     background: var(--primary);
     color: white;
     padding: 0.25rem 0.65rem;
     border-radius: 999px;
     font-size: 0.82rem;
     display: flex;
     align-items: center;
     gap: 0.35rem;
 }

 .tag .remove {
     cursor: pointer;
     font-size: 1rem;
     font-weight: bold;
 }

 .multi-select-menu {
     position: absolute;
     top: 100%;
     left: 0;
     right: 0;
     margin-top: 0.4rem;
     background: white;
     border: 1px solid #d1d5db;
     border-radius: 10px;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
     max-height: 240px;
     overflow-y: auto;
     z-index: 1000;
     display: none;
 }

 .multi-select-menu div {
     padding: 0.6rem 1.1rem;
     cursor: pointer;
     font-size: 0.95rem;
 }

 .multi-select-menu div:hover,
 .multi-select-menu div.active {
     background: #eef2ff;
 }

 .drop-zone {
     border: 2px dashed #c7d2fe;
     background: #f8fbff;
     border-radius: 14px;
     padding: 1rem;
     text-align: center;
     transition: all 0.2s;
     cursor: pointer;
     min-height: 80px;
     display: flex;
     flex-direction: column;
     justify-content: center;
 }

 .drop-zone:hover,
 .drop-zone.dragover {
     background: #e0e7ff;
     border-color: var(--primary);
 }

 .preview {
     display: flex;
     flex-wrap: wrap;
     gap: 1rem;
     margin-top: 1.2rem;
 }

 .preview-container {
     position: relative;
 }

.btn.btn-next.px-5:hover{border: none;}


 .preview img,
 .preview .pdf-placeholder {
     width: 100px;
     height: 100px;
     object-fit: cover;
     border-radius: 10px;
     box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
 }
 .preview img {
     width: 84px !important;
     height: 75px !important;
 }


 .preview-remove {
     position: absolute;
     top: -7px;
     right: -7px;
     background: #ef4444;
     color: white;
     width: 22px;
     height: 22px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 14px;
     cursor: pointer;
     border: 2px solid white;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
 }

 .btn-next {
     background: var(--primary);
     border: none;
     padding: 0.65rem 1.6rem !important;
     border-radius: 50rem;
     font-weight: 600;
     font-size: 0.95rem;
     color: #fff !important;
 }

 .btn-next:hover {
     background: var(--primary-dark);
 }

 .btn-prev {
     border: 1px solid #9ca3af;
     color: #4b5563 !important;
     background: transparent;
     padding: 0.65rem 1.6rem !important;
     border-radius: 50rem;
     font-weight: 600;
     font-size: 0.95rem;
 }

 .btn-prev:hover {
     background: #f3f4f6 !important;
 }

 .cert-item {
     display: flex;
     gap: 0.8rem;
     margin-bottom: 0.9rem;
     align-items: center;
 }

 /* Success screen */
 .success-screen {
     display: none;
     text-align: center;
     padding: 4rem 2rem;
     animation: fadeIn 0.6s ease;
 }

 .success-icon {
     font-size: 6rem;
     color: var(--success);
     margin-bottom: 1.5rem;
 }

 .success-title {
     color: var(--success);
     font-weight: 700;
     font-size: 2.2rem;
     margin-bottom: 1rem;
 }

 .success-text {
     color: var(--gray-600);
     font-size: 1.1rem;
     margin-bottom: 2.5rem;
 }

 .summary-box {
     background: var(--gray-100);
     border-radius: 12px;
     padding: 1.5rem;
     margin: 2rem 0;
     text-align: left;
 }


 .form-select {
     appearance: none;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
     background-repeat: no-repeat;
     background-position: right 0.85rem center;
     background-size: 12px;
     padding-right: 2.2rem !important;
 }

 .form-select:focus {
     border-color: var(--primary-light);
     box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
 }

 /* Optional: make selected option bolder */
 .form-select option:checked {
     font-weight: 600;
     background: #eef2ff;
     color: var(--primary-dark);
 }


 .btn.btn-outline-primary {

     font-size: 12px;
     padding: 10px;
     background: #fff !important;
     color: #AD2023 !important;
 }

 input:not([type="submit"]) {
     height: 40px !important;
 }

 .btn.btn-outline-danger {
     font-size: 12px;
     padding: 10px;
     background: #fff !important;
     color: #AD2023 !important;
 }