*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body{
    background-color: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


/* Form Container */
form{
    background-color: white;
    padding: 30px;
    width: 50%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

form h2{
    text-align: center;
    margin-bottom: 20px;
}


/* Input Feild */
.input-group{
    margin-bottom: 15px;
}

label{
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

input[type=text]{
    padding: 12px;
    margin: 10px o;
}

.name-row{
    display: flex;
    gap: 15px;
}

@media (max-width: 600px){
    .name-row{
        flex-direction: column;
    }
}

input, select, textarea{
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8%;
    outline: none;
    transition: border 0.2s ease;
}

input:focus, select:focus, textarea:focus{
    outline: none;
    border: 2px solid #667eea;
}


/* Option Feild */
.option-group {
    margin-bottom: 20px;
}

.group-tittle{
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.option{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-weight: normal;
}

.option input{
    width: auto;
}

/* Error & Success States */
.error{
    color: #e74c3c;
    font-size: 13px;
    margin-top: 4px;
}
.inValid{
    border: 2px solid red;
}
.valid{
    border: 2px solid green;
}
#successMessage{
    color: #2ecc71;
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
}


/* Button */
button{
    width: 100%;
    padding: 12px;
    background-color: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: opacity 0.2s ease;
}

button:hover{
    background-color: #45a049;
    opacity: 0.9;
}

button:disabled{
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-container{
    text-align: center;
    margin-top: 15px;
}


/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0);}
    25% { transform: translateX(-8px);}
    50% { transform: translateX(8px);}
    75% { transform: translateX(-8px);}
}

.shake {
    animation: shake 0.3s ease;
}


/* Modal Overlay */
.modal{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: linear-gradient(135deg, #667eea, #764ba2);
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.modal-content {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    color: black;
    width: 300px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.modal.show .modal-content {
    transform: scale(1);
}


/* Success Icon */
.success-icon {
    width: 70px;
    height: 70px;
    background-color: #4caf50;
    color: white;
    font-size: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    animation: pop 0.4s ease forwards;
}

@keyframes pop {
    0% { transform: scale(0);}
    80% { transform: scale(1.2);}
    100% { transform: scale(1);}
}

