/* General styles */
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    box-sizing: border-box;
    padding: 10px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 32px;/* General styles */
    body {
        font-family: 'Arial', sans-serif;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        margin: 0;
        background: linear-gradient(to right, #ff7e5f, #feb47b);
    }
    
    /* Heading styling */
    h2 {
        text-align: center;
        margin-bottom: 20px;
        color: #fff;
    }
    
    /* Form container styling */
    .form-container {
        background: #ffffff;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 450px;
        margin: 20px;
        transition: transform 0.3s ease-in-out;
    }
    
    /* Hover effect for form container */
    .form-container:hover {
        transform: scale(1.05);
    }
    
    /* Input & Label Styling */
    label {
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #333;
    }
    
    /* Form fields (inputs, select) styling */
    input, select {
        width: 100%;
        padding: 12px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        box-sizing: border-box;
        transition: border-color 0.3s ease;
    }
    
    /* Input fields on focus */
    input:focus, select:focus {
        border-color: #ff7e5f;
        outline: none;
    }
    
    /* Placeholder styling */
    input::placeholder, select::placeholder {
        color: #888;
    }
    
    /* Floating label effect */
    input.focus, select.focus {
        border-color: #ff7e5f;
    }
    
    /* Error message styling */
    .error-message {
        color: red;
        font-size: 12px;
        margin-top: 5px;
        display: block;
    }
    
    /* Gender radio buttons container */
    .gender-container {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 15px;
    }
    
    /* Button Styling */
    button {
        background: linear-gradient(to right, #ff7e5f, #feb47b);
        color: #fff;
        border: none;
        cursor: pointer;
        font-size: 18px;
        font-weight: bold;
        padding: 12px;
        border-radius: 5px;
        transition: opacity 0.3s ease;
    }
    
    /* Button hover effect */
    button:hover {
        opacity: 0.8;
    }
    
    /* Confirmation message styling */
    .confirmation-message {
        padding: 20px;
        background-color: #e8f4f8;
        border: 1px solid #a3c6e8;
        border-radius: 5px;
        margin-top: 20px;
        color: #333;
        display: none; /* Initially hidden */
    }
    
    /* Confirmation message title */
    .confirmation-message h3 {
        font-size: 24px;
        color: #4CAF50;
    }
    
    /* Confirmation message paragraphs */
    .confirmation-message p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Responsive design: Adjust layout for smaller screens */
    @media (max-width: 600px) {
        .form-container {
            padding: 20px;
            width: 90%;
        }
        
        h2 {
            font-size: 20px;
        }
        
        button {
            font-size: 16px;
            padding: 10px;
        }
    }
    
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form container styling */
.form-container {
    background: #ffffff;
    padding: 40px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    margin: 20px;
    transition: transform 0.3s ease-in-out;
}

.form-container:hover {
    transform: scale(1.03);
}

/* Form field styling */
label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 18px;
    text-transform: capitalize;
}

input, select, button {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease-in-out;
}

input:focus, select:focus, button:focus {
    border-color: #ff7e5f;
    outline: none;
}

input[type="radio"] {
    width: auto;
    margin-right: 12px;
}

/* Gender selection styling */
.gender-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.gender-container input {
    margin-right: 8px;
}

button {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    padding: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

button:active {
    transform: scale(1);
}

/* Confirmation message styling */
.confirmation-message {
    padding: 30px;
    background-color: #e8f4f8;
    border: 1px solid #a3c6e8;
    border-radius: 8px;
    margin-top: 30px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.confirmation-message h3 {
    font-size: 26px;
    color: #4CAF50;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.confirmation-message p {
    font-size: 18px;
    margin-bottom: 8px;
}

.confirmation-message p strong {
    color: #ff7e5f;
}

/* Input Field Styles */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select {
    border: 2px solid #ddd;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="date"]:focus, select:focus {
    border-color: #ff7e5f;
}

/* Responsive Design for Mobile */
@media (max-width: 600px) {
    .form-container {
        padding: 20px;
        max-width: 100%;
    }

    label {
        font-size: 16px;
    }

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

    .confirmation-message {
        font-size: 16px;
        padding: 20px;
    }
}

/* Tooltip Styling for Form Inputs */
input:invalid, select:invalid {
    border-color: #e74c3c;
}

input:invalid + span, select:invalid + span {
    visibility: visible;
    color: #e74c3c;
    font-size: 14px;
    font-style: italic;
    margin-top: 5px;
    display: block;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
