/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
.section-title,
.section-header {
    background: linear-gradient(to right, #0071BC, #272361);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin: 100px 0 10px;
}

h3 {
    font-size: 20px;
}

p, li {
    font-size: 20px;
}

li {
    margin-top: 10px;
}

.section-header {
    font-size: 1.5em;
    font-weight: bold;
    margin: 120px 0 50px;
    padding: 100px 0 15px;
    border-bottom: 2px solid #0071bc;
    width: 100%;
}

.section-header:first-of-type {
    margin-top: 0;
}

.subtitle {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: black;
}

.candidate-name {
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Grid system */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-form-left,
.col-form-right {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

/* Form styles */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    height: 100%;
}

label {
    display: flex;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 500;
}

label:not(.file-label):not(.file-upload-label) {
    flex-direction: column;
    min-height: 50px;
}

.horizontal-field {
    display: flex;
    gap: 20px;
}

.label-text {
    flex: 1;
}
/* Scoped styles for custom-form */
.custom-form .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.custom-form .col-content {
    flex: 0 0 100%;
    max-width: 100%;
}

.custom-form .col-form-left,
.custom-form .col-form-right {
    
    max-width: 100%;
}

.custom-form .col-content,
.custom-form .col-form-left,
.custom-form .col-form-right {
    padding: 0 15px;
}

/* Form styles */
.custom-form .form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.custom-form label {
    display: block;
    margin-bottom: 1px;
    margin-top: 30px;
    flex: 0 0 auto;
    font-size: 16px;
}

.custom-form input[type="text"],
.custom-form input[type="tel"],
.custom-form input[type="email"],
.custom-form input[type="date"],
.custom-form input[type="number"],
.custom-form input[type="url"],
.custom-form textarea,
.custom-form select {
    width: 100%;
    padding: 8px;
    border: none;
    border-bottom: 2px solid #ddd;
    background-color: transparent;
    font-size: 18px;
    transition: border-color 0.3s;
    flex: 1 0 auto;
    font-family: 'Montserrat';
}


.small-description {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="url"],
textarea,
select {
    width: 100% ;
    padding: 10px 0 ;
    border: none ;
    border-bottom: 2px solid #ddd ;
    background-color: transparent ;
    font-size: 16px ;
    font-family: 'Montserrat', sans-serif ;
    transition: border-color 0.3s ;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-bottom-color: #0071bc;
}

/* Radio button styles */
.radio-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
}

input[type="radio"] {
    margin-right: 5px;
}

/* File input styles */
.file-input-wrapper,
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-top: 5px;
}

input[type="file"],
.file-upload-input {
    position: absolute;
    left: -9999px;
}

.file-label,
.file-upload-label {
    font-size: 14px;
    color: white;
    background: linear-gradient(to right, #0071BC, #272361);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 4px 4px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-label:hover,
.file-upload-label:hover {
    background-color: #272361;
}

.file-info {
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.file-name {
    font-size: 12px;
    margin-right: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    color: #666;
}

.file-clear-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 5px;
    display: none;
}

.file-clear-btn:hover {
    color: #cc0000;
}

/* Button styles */
.btn-apply,
#addEducationRow,
#deleteEducationRow {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.3s;
    background: linear-gradient(to right, #0071BC, #272361);
}

.btn-apply:hover,
#addEducationRow:hover,
#deleteEducationRow:hover {
    opacity: 0.9;
}

#deleteEducationRow {
    background: linear-gradient(to right, #ff4d4d, #cc0000);
}

/* Table styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

#educationTable th,
#educationTable td {
    padding: 10px;
    vertical-align: top;
}

#educationTable input[type="text"],
#educationTable input[type="number"] {
    width: 100%;
    padding: 5px;
}

/* Declaration styles */
.declaration-table-wrapper {
    width: 100%;
}

.declaration-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.declaration-table th,
.declaration-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.declaration-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Document upload styles */
.document-upload-container {
    margin-bottom: 40px;
}

.document-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.document-upload-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.document-upload-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.document-upload-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.upload-instructions {
    margin-bottom: 20px;
    font-style: italic;
    color: #666;
}

/* Misc styles */
.notice {
    border: 1px solid grey;
    padding: 15px;
    border-radius: 5px;
    font-size: small;
}

.notice span {
    font-size: 16px;
    padding-right: 8px;
    font-weight: 900;
}

.apply-now-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .col-form-left,
    .col-form-right {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1.5em;
    }

    input, select, textarea {
        font-size: 14px;
    }

    label {
        min-height: auto;
    }

    .table-responsive {
        margin: 0;
    }

    #educationTable th,
    #educationTable td {
        padding: 10px 5px;
    }

    #educationTable input[type="text"],
    #educationTable input[type="number"] {
        width: 100%;
        min-width: 80px;
    }

    .file-label,
    .file-upload-label {
        padding: 5px;
        font-size: 0.8em;
    }

    .document-upload-grid .file-name {
        margin-left: 100px;
        margin-bottom: 12px;
    }
}#errorBox {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

#errorBox h4 {
    color: #c62828;
    margin-top: 0;
}

#errorList {
    margin: 0;
    padding-left: 20px;
}

#errorList li {
    color: #c62828;
    cursor: pointer;
    margin-bottom: 5px;
}

#errorList li:hover {
    text-decoration: underline;
}


.form-group {
    margin-bottom: 20px !important;
}

.small-description {
    font-size: 12px !important;
    color: #666 !important;
    font-style: italic !important;
}

.input-group-append .input-group-text {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}


#courseApplied,
#courseTenure,
#presentStatus,
#institutionDetails,
#institutionWebsite,
#tuitionFees {
    width: 100% !important;
    padding: 10px 0 !important;
    border: none !important;
    border-bottom: 2px solid #ddd !important;
    background-color: transparent !important;
    font-size: 16px !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: border-color 0.3s !important;
}

#courseApplied:focus,
#courseTenure:focus,
#presentStatus:focus,
#institutionDetails:focus,
#institutionWebsite:focus,
#tuitionFees:focus {
    outline: none !important;
    border-bottom-color: #0071bc !important;
}

#errorBox {
    background-color: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

#errorBox h4 {
    color: #b71c1c;
    margin-top: 0;
}

#errorList {
    margin: 0;
    padding-left: 20px;
}

#errorList li {
    color: #c62828;
}

.error {
    border: 1px solid #ef5350 !important;
    background-color: #ffebee !important;
}

input[type="file"].error {
    border: none !important;
    background-color: transparent !important;
}

input[type="file"].error + .file-label {
    border: 1px solid #ef5350 !important;
    background-color: #ffebee !important;
}



.invalid {
    border-color: red;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.apply-now-container {
    margin-top: 20px;
}

#errorBox {
    border: 1px solid red;
    padding: 10px;
    margin-top: 20px;
}

#errorBox h4 {
    margin: 0 0 10px 0;
}

#errorBox ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.download-link{
    cursor: pointer
	
}
