body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8; /* Light gray background */
    display: flex;
    flex-direction: column; /* For header at top and content below */
    min-height: 100vh; /* Full viewport height */
}

.container {
    flex-grow: 1; /* Allows container to take available space */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to start, not center, to push form up a bit */
    padding: 40px 20px;
}

/* Header Styling */
.header {
    background-color: #57147d; /* Intellipaat Purple */
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-right: auto; /* Pushes logo to right */
    margin-left: 20px; /* Space between logo and title */
}



.intellipaat-logo {
    height: 40px; /* Adjust as needed */
    width: auto;
    display: block; /* Removes extra space below image */
}


/* Form Section Styling */
.form-section {
    background-color: white;
    padding: 40px 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px; /* Adjust based on desired width */
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    text-align: left;
    color: #333;
    font-size: 2em;
    margin-bottom: 30px;
}

/* Form Layout */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between rows/groups */
}

.form-row {
    display: flex;
    gap: 30px; /* Space between form groups in a row */
    width: 100%;
}

.form-group {
    flex: 1; /* Each form group takes equal space in a row */
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #666;
    font-weight: bold;
    font-size: 0.9em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width */
}

.form-group input:focus,
.form-group select:focus {
    border-color: #57147d; /* Highlight on focus */
    outline: none;
    box-shadow: 0 0 5px rgba(87, 20, 125, 0.2); /* Soft shadow on focus */
}

/* Required field asterisk */
.required {
    color: #ff0000; /* Red color for asterisk */
    margin-left: 2px;
}

/* Checkbox group styling */
.checkbox-group {
    flex-direction: row; /* Align checkbox and label horizontally */
    align-items: center;
    gap: 10px; /* Space between checkbox and label */
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto; /* Override default input width */
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.9em;
    color: #333;
}

.checkbox-group a {
    color: #57147d; /* Intellipaat purple for links */
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Register Button */
.register-button {
    background-color: #ff8c00; /* Intellipaat Orange */
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: fit-content; /* Button width adjusts to content */
    align-self: flex-start; /* Align button to left */
    margin-top: 20px;
}

.register-button:hover {
    background-color: #e07b00; /* Slightly darker orange on hover */
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }

    .header-title {
        margin-top: 10px;
        margin-left: 0;
        margin-right: 0;
    }

    .form-section {
        padding: 30px;
        margin: 20px; /* Add some margin on smaller screens */
    }

    .form-row {
        flex-direction: column; /* Stack form groups vertically */
        gap: 20px;
    }

    .register-button {
        width: 100%; /* Full width button on small screens */
        align-self: center; /* Center button */
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 20px;
    }

    .form-section h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
}