/* Basic Reset and Font */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #e8f5e9;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
}

form {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

/* Custom Selection Color */
::selection {
    background: #e6f7e6; /* light green selection color */
    color: #4a4a4a;
}
::-moz-selection {
    background: #e6f7e6;
    color: #4a4a4a;
}

/* Header Section */
.form-header {
    background: linear-gradient(to right, #66bb6a, #81c784);
    padding: 25px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-left p {
    font-size: 1em;
    font-weight: 500;
}

.header-right {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right h2 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
}

.logo {
    width: 100px;
    height: auto;
}

/* Main Form Blocks */
.form-block {
    background: #ffffff;
    padding: 25px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

/* Headings for sections */
.form-heading {
    font-size: 1.2em;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 20px;
}

/* Form Fields */
.form-field {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.9em;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 5px;
}

input[type="text"], 
input[type="email"], 
input[type="date"], 
select, 
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    transition: border-color 0.3s;
}

input::placeholder, textarea::placeholder {
    color: #a0a0a0;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #66bb6a;
}

/* Specific styling for the 'Date' input placeholder */
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: #a0a0a0;
}

/* Radio Buttons */
.gender-options, .radio-options {
    display: flex;
    gap: 20px;
    align-items: center;
}

.gender-options input[type="radio"], .radio-options input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.gender-options label, .radio-options label {
    display: inline;
    margin-bottom: 0;
}

/* Academic and Employment sections */
.academic-item, .job-item, .vocational-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

/* For newly added blocks with remove button */
.dynamic-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.dynamic-item .remove-btn {
    position: absolute;
    top: 0px;
    right: 17px;
    background-color: #e57373;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dynamic-item .remove-btn:hover {
    background-color: #d32f2f;
}

/* Benefits Checkbox Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
}

.benefit-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.benefit-item label {
    display: inline;
    margin-bottom: 0;
}

/* Buttons */
button {
    padding: 12px 20px;
    background-color: #66bb6a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-top: 10px;
}

button:hover {
    background-color: #55a859;
}

/* "I Agree" Checkbox */
.checkbox-field {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.checkbox-field input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-field label {
    display: inline;
    margin-bottom: 0;
}

.undertaking-text {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}








/* Responsive Design */

.popup {
   
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #ffffff;
    padding: 20px 30px;
    border: #1a7f46 1px solid;
    border-radius: 10px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 400px;

}

.popup-content.success { border-left: 5px solid #1a7f46; }
.popup-content.error { border-left: 5px solid #d93025; }

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 22px;
    cursor: pointer;
}



