
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Use a modern, readable font */
    font-family: 'Poppins', sans-serif; 
}

@import url('https://fonts.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(180deg, #2193b0, #6dd5ed);
    padding: 20px;
}



form {
    background: #fff;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
    width: 100%;
    max-width: 900px; 
}

.heading {
        width: 100%;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
        text-transform: uppercase;

}

.heading::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    height: 3px;
    width: 80px;
    background: #2193b0; 
    border-radius: 5px;
}

.form-row {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    margin-bottom: 20px;
}

.input-box {
    position: relative;
    flex: 1 1 calc(33.33% - 20px); 
    min-width: 250px; 
    height: 50px;
}
.text-danger {
    color: #e74c3c; 
    font-size: 12px;
    margin-top: 4px;
    position: absolute; 
    left: 0;
    bottom: -18px; 
}







@media (max-width: 950px) {
    .input-box {
        flex: 1 1 calc(50% - 10px); 
    }
}

@media (max-width: 550px) {
    .input-box {
        flex: 1 1 100%; 
        min-width: auto;
    }
    form {
        padding: 20px 15px;
    }
}

.input-box input[type="text"],
.input-box input[type="email"],
.input-box input[type="file"],
.input-box input[type="password"],
.input-box select {
    width: 100%;
    height: 100%;
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-box input:focus,
.input-box select:focus {
    border-color: #2193b0;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
    background: #fff;
}


.input-box label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
    transition: 0.3s ease-in-out;
    font-size: 16px;
    /* padding: 0 5px; */
}

.input-box input:not(:placeholder-shown) + label,
.input-box input:focus + label,
.input-box select:not(:nth-child(1)) + label { 
    top: 0; 
    left: 16px;
    font-size: 16px;
    color: #2193b0;
    font-weight: 500;
  
    background: #fff; 
    border-radius: 4px;
    box-shadow: 0 0 0 2px #fff; 
}

input:-webkit-autofill {
  box-shadow: 0 0 0px 1000px white inset !important;
  -webkit-text-fill-color: black !important;
}


/* .input-box select {
    background-image: linear-gradient(45deg, transparent 50%, #777 50%),
                      linear-gradient(135deg, #777 50%, transparent 50%);
    background-position: calc(100% - 20px) 20px,
                         calc(100% - 15px) 20px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.input-box select:focus { 
    background-image: linear-gradient(45deg, transparent 50%, #4CAF50 50%), 
} */


 .input-box input[type="file"] {
    padding-top: 13px;
    padding-left: 24px;
    cursor: pointer;
}
.input-box input[type="file"] + label {
    top: 26px;
    padding: 1px 2px 2px 2px;
    /* width: 104px; */
    left: 6px;
    font-size: 16px;
    color: #2193b0;
    font-weight: 500;
    border: 1px solid #000;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
} 


.btn-s2 {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: #2193b0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 10px;
    letter-spacing: 1px;
}

.btn-s2:hover {
    background: #2193b0; 
}

.btn-s2:active {
    transform: scale(0.99);
}


.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #555;
    margin-top: 10px;
}

.checkbox-input {
  
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #2193b0; 
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkbox-input:checked {
    background-color: #2193b0;
    border-color: #2193b0;
}


.checkbox-input:checked::before {
    content: '\2713'; 
    display: block;
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.text-danger {
    color: #e74c3c; 
    font-size: 12px;
    margin-top: 4px;
    position: absolute; 
    left: 0;
    bottom: -18px; 
}


#password-warning {
    position: static; 
    display: block;
    margin-top: 5px;
}

