body {
    margin: 0;
    padding: 0;
}
*{
    
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
.apply {
    width: 50%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.6s ease-out forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2, h6 {
    text-align: center;
    color: #333;
}

h2 {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

h6 {
    animation: fadeIn 0.8s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form {
    display: flex;
    flex-direction: column;
}

/* Animate form groups as they appear */
label {
    font-weight: 600;
    margin-top: 10px;
    opacity: 0;
    animation: slideInLeft 0.5s ease-out forwards;
}

/* Staggered animation for labels */
label:nth-of-type(1) { animation-delay: 0.1s; }
label:nth-of-type(2) { animation-delay: 0.15s; }
label:nth-of-type(3) { animation-delay: 0.2s; }
label:nth-of-type(4) { animation-delay: 0.25s; }
label:nth-of-type(5) { animation-delay: 0.3s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

input, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Focus animations */
input:focus, textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    transform: scale(1.02);
}

input[type="radio"] {
    width: auto;
    margin-right: 10px;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .apply {
        width: 80%;
    }
}
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.radio-group input[type="radio"] {
    display: none;
}
.radio-group label {
    padding: 10px 20px;
    border: 2px solid #000000;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

/* Ripple effect on radio labels */
.radio-group label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.radio-group label:active::after {
    width: 200px;
    height: 200px;
}

.radio-group input[type="radio"]:checked + label {
    background-color: #007bff;
    color: white;
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Hover Effect */
.radio-group label:hover {
    background-color: #007bff;
    color: white;
    transform: scale(1.05);
}

.custom-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s;
    z-index: 10000;
}

.custom-dialog.show {
    opacity: 1;
    visibility: visible;
}

.dialog-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.7);
    opacity: 0;
    animation: dialogBounce 0.5s ease-out forwards;
}

@keyframes dialogBounce {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dialog-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #007bff;
}

.dialog-body {
    font-size: 16px;
    margin-bottom: 15px;
}

.dialog-footer button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dialog-footer button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

body{
    background-image: url('./Images/Form\ BG.avif');
    background-size: cover;
}
textarea {
    resize: none !important;
}
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#loadingOverlay p {
    margin-top: 15px;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.error-message {
    color: red;
    font-size: 14px;
    display: none;
    margin-top: 5px;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.apply h2, .apply h6 {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-weight: 700;
}

/* Slide-up Animation */
.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Form field groups animation on scroll */
.form-group {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.form-group.active {
    opacity: 1;
    transform: translateY(0);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Custom Scrollbar for WebKit browsers */
::-webkit-scrollbar {
  width: 3px; /* vertical scrollbar width */
  height: 8px; /* horizontal scrollbar height */
}

::-webkit-scrollbar-track {
  background: white; /* track color */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #007bff; /* thumb color */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0056b3; /* thumb hover color */
}