:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --step-inactive: #bdc3c7;
    --step-active: #3498db;
    --step-completed: #2ecc71;
    --header-color: #0d6efd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.header-full {
    background-color: var(--header-color);
    color: white;
    padding: 20px 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo {
    height: 100px;
    margin-right: 10px;
}

.header-text {
    flex: 1;
    text-align: center;
    /* Text center */
}

.header-text h1 {
    font-size: 30px;
    margin-bottom: 5px;
}

.header-text p {
    font-size: 14px;

    opacity: 0.9;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
}

.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--step-inactive);
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--step-inactive);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.step-number.active {
    background-color: var(--step-active);
}

.step-number.completed {
    background-color: var(--step-completed);
}

.step-title {
    font-size: 12px;
    color: var(--dark-gray);
    text-align: center;
}

.step-title.active {
    color: var(--primary-color);
    font-weight: 600;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-col {
    flex: 1;
    min-width: 250px;
    padding: 0 10px;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.required::after {
    content: '*';
    color: var(--accent-color);
    margin-left: 4px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: baseline;
}

.radio-option input,
.checkbox-option input {
    width: auto;
    margin-right: 8px;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    padding: 7px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: var(--light-gray);
    font-weight: 600;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-add {
    background-color: var(--success-color);
    margin-bottom: 20px;
}

.btn-add:hover {
    background-color: #219653;
}

.btn-remove {
    background-color: var(--accent-color);
    padding: 8px 12px;
    font-size: 14px;
}

.btn-remove:hover {
    background-color: #c0392b;
}

.btn-prev {
    background-color: var(--dark-gray);
}

.btn-prev:hover {
    background-color: #6c757d;
}

.btn-save {
    background-color: var(--warning-color);
}

.btn-save:hover {
    background-color: #e67e22;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.declaration {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error {
    color: var(--accent-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

input.error-field,
select.error-field,
textarea.error-field {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.success-container {
    display: none;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.success-icon {
    font-size: 60px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-container h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.success-container p {
    margin-bottom: 25px;
    font-size: 16px;
}

/* .enclosures-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.enclosure-item {
    flex: 1;
    min-width: 200px;
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
} */

.file-upload {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    transition: background-color 0.3s;
}

.file-upload-label:hover {
    background-color: #2980b9;
}

.file-name {
    font-size: 12px;
    margin-top: 5px;
    color: var(--dark-gray);
    word-break: break-all;
}

.file-uploaded {
    color: var(--success-color);
    font-weight: 600;
}

.attachment-container {
    margin-bottom: 20px;
}

.attachment-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.attachment-item input {
    flex: 1;
    margin-right: 10px;
}

.enclosures-file-input {
    font-size: 12px;
    margin-top: 5px;
    color: var(--dark-gray);
    word-break: break-all;
}

.enclosures-file-uploaded {
    color: var(--success-color);
    font-weight: 600;
}

.enclosures-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.enclosures-item input {
    flex: 1;
    margin-right: 10px;
}

.footer-full {
    background-color: var(--header-color);
    color: white;
    padding: 20px 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.age-container {
    display: flex;
    gap: 10px;
}

.age-input {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.age-input input {
    width: 100%;
    padding: 13px;
    box-sizing: border-box;
}

/* Add this to your style.css file */
.document-upload {
    margin-top: 15px;
    text-align: right;
}

.btn-upload {
    background-color: #3498db;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-upload:hover {
    background-color: #e0e0e0;
}

/* Adjust table columns to accommodate the new field */
.table-responsive table {
    width: 100%;
}

.table-responsive th:nth-child(6),
.table-responsive td:nth-child(6) {
    width: 120px;
    /* Adjust width for Total Marks column */
}

/* Ph.D. Section Styling */
.phd-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.phd-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}
.parenthetical-note {
    font-weight: normal;
    font-size: 0.9em;
    color: #555;
}
/* Compact same-as row styling */
.same-as-row {
    margin: 20px 0; /* Exactly 20px vertical spacing */
    padding: 0;
}

.same-as-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
}

.same-as-container input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.same-as-container label {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

/* Remove extra spacing from form-col */
.same-as-row .form-col {
    padding: 0;
}


@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .form-col {
        flex: 100%;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
    }

    .enclosure-item {
        min-width: 100%;
    }

    /* Hide step titles on mobile */
    .step-title {
        display: none;
    }

    .phd-section .form-col {
        width: 100%;
        margin-bottom: 15px;
    }
}