* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f1f2f3;
}

#results {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.thanks-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.thanks-header .icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.thanks-header .icon img {
    width: 30px;
    height: 30px;
    color: white;
}

.thanks-header h2 {
    color: var(--text-dark);
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

.university-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.university-card {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    background-color: var(--background-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.university-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-dark);
}

.university-card .details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.contact-info {
    text-align: center;
    padding: 15px;
    display: flex;
    column-gap: 25px;
    background-color: var(--background-light);
    border-top: 1px solid var(--border-light);
}

.contact-info a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a .phone-icon {
    margin-left: 10px;
}

.contact {
    display: flex;
    align-items: center;
    column-gap: 5px;
    font-weight: 300;
}

.contact-text {
    font-size: 16px;
}

.bold {
    font-weight: bold;
}
.icon {
    padding: 8px;
    background-color: #ff3131;
    margin: 2px;
    color: #fff;
    border-radius: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 0; /* Remove bottom margin */
}

.logo img {
    max-height: 60px;
    width: auto;
}

/* Contact icons in header */
.contact-icons {
    display: flex;
    gap: 15px;
}

.icon-link {
    text-decoration: none;
    display: inline-block;
}

.icon-link .icon {
    font-size: 20px;
    padding: 8px;
    background-color: #ff3131;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-link:hover .icon {
    transform: scale(1.1);
    background-color: #e51c1c;
}

/* Mobile contact info at bottom */
.mobile-contact-info {
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
    background-color: #f8f8f8;
    margin-top: 30px;
    border-top: 1px solid #ddd;
}

.mobile-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-contact .icon {
    font-size: 18px;
    padding: 6px;
}

.mobile-contact a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo-graphic {
    display: flex;
}

.logo-square {
    width: 40px;
    height: 40px;
}

.orange-square {
    background-color: #FF8C00;
    transform: rotate(45deg);
    margin-right: -10px;
}

.red-square {
    background-color: #E53935;
    border-radius: 50%;
}

.red-circle {
    background-color: #E53935;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: 10px;
}

.logo-text {
    margin-left: 10px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: normal;
    color: #333;
}

.logo-text p {
    font-size: 16px;
    color: #FF8C00;
}



.welcome-text h2 {
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 20px;
}

.welcome-text h3 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.welcome-text p {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.welcome-text p span {
    font-style: italic;
}


.question-container {
    max-width: 800px;
    margin: 0 auto;
    display: none;
}

.question-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.options-list {
    list-style: none;
}

.option-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.option-label {
    font-size: 18px;
    margin-right: 20px;
    flex-grow: 1;
}

.radio-circle {
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    margin-right: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.radio-circle.selected::after {
    content: '';
    width: 15px;
    height: 15px;
    background-color: #000;
    border-radius: 50%;
}

.navigation {
    display: flex;
    width: 20px;
    margin-top: 40px;
}



.results-container {
    max-width: 900px;
    margin: 0 auto;
    display: none;
}

.results-container h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

.results-header {
    font-style: italic;
    margin-bottom: 20px;
}

.university-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.university-card {
    width: calc(33% - 20px);
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.university-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.nirf-rank {
    font-size: 14px;
    margin-bottom: 10px;
}

.program-name {
    font-size: 16px;
    margin-bottom: 10px;
}

.fee-info, .emi-info {
    font-size: 14px;
    margin-bottom: 5px;
}

.consultation-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #000;
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
    .welcome-text h2 {
        font-size: 28px;
    }
    
    .welcome-text h3 {
        font-size: 24px;
    }
    
    .university-card {
        width: 100%;
    }
    
    .question-container h2 {
        font-size: 22px;
    }
    
    .options-list {
        padding: 0;
    }
    
    .option-item {
        padding: 10px 0;
    }
    
    .option-label {
        font-size: 16px;
    }
    
    .wizard-container {
        padding: 20px;
        border-radius: 15px;
    }
    
    .contact-text {
        font-size: 16px;
    }

    .form-group label {
        font-size: 14px;
    }
    .form-input {
        font-size: 14px;
    }
    .welcome-title h2, .welcome-title h3 {
        font-size: 18px;
    }
    .welcome-screen-content p {
        font-size: 14px;
    }
    .navigation .nav-button {
        font-size: 14px;
    }
    .banner-image {
        max-width: 100%;
        height: auto;
    }
    
    .email-contact {
        display: none;
    }
    
    /* Show mobile contact info at bottom */
    .mobile-contact-info {
        display: flex;
    }
    
    /* Hide original contact info in header for mobile */
    .contact-info {
        display: none;
    }
}

@media (max-width: 576px) {
    .welcome-text h2 {
        font-size: 28px;
    }
    
    .welcome-text h3 {
        font-size: 24px;
    }
    
    .university-card {
        width: 100%;
    }
    
    .contact-icons {
        gap: 10px;
    }
    
    .icon-link .icon {
        font-size: 18px;
        padding: 6px;
    }
}

.logo img {

    margin-right: 20px;
}


.wizard-container {
    background-color: #ffffff;
    padding: 40px;
    display: flex;
    border-radius: 25px;
    flex-direction: row;
    border: 2px black solid;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}   

.wizard-left {
    width: 60%;
}

.wizard-right {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-right img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.welcome-header {
    display: flex;
}

.welcome-title h2 {
    color: #ff3131;
    font-size: 20px;
    margin: 0;
    padding: 0;
}

.welcome-title h3 {
    color: #413f3f;
    font-size: 25px;
    margin: 0;
    padding: 0;
    margin-top: 10px;
}

.left-box {
    width: 5px;
    margin-right: 10px;
    background-color: #ff3131;
    display: inline-block;
}

.welcome-screen-content {
    margin-top: 20px;
    margin-left: 16px;
}   


button {
    background-color: #ff3131;
    color: white;
    border: none; 
    font-size: 16px;
    align-items: center;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 100px;
    display: flex;
}

.nav-button {
    width: auto;                  /* allow flexible width */
    justify-content: center; 
    gap: 8px;                     /* small spacing for icons/text */
    min-width: 120px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.back-button {
    background-color: #f1f1f2;
    color: black;
    border: 2px solid black;
    font-size: 16px;
    display: inline-flex;         /* inline-flex works well for buttons */
    align-items: center;
    justify-content: center;      /* center content */
    margin-right: 10px;
}

.nav-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.question-container h2 {
    color:  #ff3131;    
}

results-container h2 {
    color: #ff3131;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #ff3131;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 49, 49, 0.2);
}

.file-input {
    background-color: #f8f8f8;
    padding: 15px 10px;
    cursor: pointer;
}

/* Success message */
.success-message {
    background-color: #e0f7e6;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin-bottom: 20px;
    color: #2e7d32;
}

.error-message {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 15px;
    margin-bottom: 20px;
    color: #c62828;
}

/* Multiple selection styling for budget options */
.option-item.multiple-select .radio-circle {
    border-radius: 4px;
}

.option-item.multiple-select .radio-circle.selected::after {
    border-radius: 2px;
}

/* Form validation */
.form-input.error {
    border: 2px solid #ff3131;
    background-color: #fff8f8;
}

.error-message {
    color: #ff3131;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Navigation buttons */
.navigation {
    display: flex;
    width: 100%;
    margin-top: 40px;
    justify-content: flex-start;
    gap: 15px;
}

/* Responsive improvements */
@media (max-width: 992px) {
    .wizard-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .wizard-left {
        width: 100%;
    }
    
    .wizard-right {
        width: 100%;
        max-height: 300px;
        overflow: hidden;
        margin-bottom: 20px;
        display: none; /* Hide the image on mobile */
    }
    
    .university-cards {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        gap: 15px;
    }
    
    .university-card {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .navigation {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 30px;
    }
    
    .nav-button {
        width: auto;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    header {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .contact-info {
        margin-top: 10px;
    }
    
    .banner-image {
        max-width: 100%;
        height: auto;
    }
}

@media (min-width: 993px) {
    .navigation {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .wizard-right {
        display: block;
    }
    
    .nav-button {
        min-width: 120px;
    }
}

/* Form styling improvements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #ff3131;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 49, 49, 0.2);
}

/* University card improvements */
.university-card {
    transition: transform 0.2s ease;
    border-radius: 8px;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.university-name {
    color: #ff3131;
}

.nirf-rank {
    color: #666;
}

.consultation-link {
    color: #ff3131;
    font-weight: 500;
    margin-top: 15px;
    display: inline-block;
}

.consultation-link:hover {
    text-decoration: none;
}

/* Welcome screen improvements */
.welcome-screen-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.start-button {
    margin-top: 30px;
    font-weight: bold;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

/* Adding smooth transitions */
.question-container, .results-container, #welcome-screen {
    transition: all 0.3s ease-in-out;
}

/* OTP Verification Modal Styles */
.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-content h3 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.otp-container {
    margin-top: 20px;
}

#otp-status-message {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.4;
}

#otp-input {
    font-size: 20px;
    letter-spacing: 2px;
    text-align: center;
}

#otp-error {
    display: none;
}

.otp-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.nav-button.secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.nav-button.secondary:hover {
    background-color: #e0e0e0;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
    }
    
    .otp-buttons {
        flex-direction: column;
    }
}