body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eef2f7; /* Lighter background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 35px 40px; /* More padding */
    border-radius: 12px; /* Softer corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Deeper shadow */
    width: 100%;
    max-width: 700px; /* Wider form */
}

h2 {
    text-align: center;
    color: #2c3e50; /* Darker heading color */
    margin-bottom: 30px;
    font-size: 28px; /* Larger heading */
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px; /* More space between groups */
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Space between fields in a row */
    margin-bottom: 20px;
}

.form-row .half-width {
    flex: 1; /* Each takes equal width */
}

.form-row.three-columns .third-width {
    flex: 1; /* Each takes equal width for three columns */
}


label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600; /* Slightly bolder labels */
    color: #34495e; /* Darker label color */
    font-size: 15px;
}

input[type="text"],
input[type="date"],
input[type="tel"], /* Added for mobile number */
select,
textarea {
    width: 100%; /* Full width */
    padding: 12px 15px; /* More padding inside fields */
    border: 1px solid #ced4da; /* Subtle border */
    border-radius: 8px; /* Softer corners */
    box-sizing: border-box;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus, /* Added for mobile number */
select:focus,
textarea:focus {
    border-color: #007bff; /* Primary brand color on focus */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Subtle glowing effect */
    outline: none;
}

/* Specific styling for file input to make it look full width and consistent */
input[type="file"] {
    display: block; /* Ensures it takes full width */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #f8f9fa; /* Light background for file input */
    cursor: pointer;
    font-size: 16px;
    color: #495057;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

input[type="file"]:hover {
    border-color: #a1b0c0;
    background-color: #e9ecef;
}

.error-message {
    color: #dc3545; /* Red for errors */
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
}

.payment-details {
    background-color: #f0f7f4; /* Lighter green background */
    border: 1px solid #d4ede6;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    margin-bottom: 25px; /* Add margin below payment details */
}

.payment-details p {
    margin-top: 0;
    margin-bottom: 12px;
    color: #28a745; /* Green color for payment info */
    font-weight: 600;
}

.payment-details .small-text {
    font-size: 13px;
    color: #6c757d;
    margin-top: 10px;
}

button[type="submit"] {
    background-color: #007bff; /* Primary blue for submit */
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

button[type="submit"]:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column; /* Stack fields vertically on small screens */
        gap: 0; /* Remove gap when stacked */
    }

    .form-row .half-width,
    .form-row.three-columns .third-width {
        width: 100%;
        margin-bottom: 20px; /* Add margin back for stacked fields */
    }

    .form-row .half-width:last-child,
    .form-row.three-columns .third-width:last-child {
        margin-bottom: 0; /* No bottom margin for the last field in a stacked row */
    }

    .container {
        padding: 25px 20px;
    }

    h2 {
        font-size: 24px;
    }
}