/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #FCC301; /* Vibrant yellow background outside the form */
    padding-top: 20px;
}

/* Logo Container */
.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}



/* Logo Styling */
.logo {
    max-width: 600px;
    width: 100%;
    height: auto;
}

/* Main Form Container */
/*.form-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    background: #fff; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
}*/

        /* Main Form Container */
        .form-container {
            width: 100%;
            max-width: 600px;
            padding: 20px;
            background: #fff; /* White background for the form itself */
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }


/* Header Container */
.header-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    width: 100%; /* Ensure the container takes the full width */
}

/* Title */
.header-title {
    margin: 0;
    font-size: 24px;
    flex: 1;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

        /* Language switch button */
        .language-switch {
            margin-left: auto;
            border: none;
            background: none;
            cursor: pointer;
        }

        .language-switch img {
            width: 60px;
            max-width: 60px;
        }    

.form-container h2 {
    text-align: center;
}

/* General Form Styling */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.registration-form h2 {
    margin-bottom: 20px;
}

/* Row for Inline Elements like First Name and Last Name */
.input-row {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

/* General Input Group Style */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Label Styling */
.input-group label {
    font-size: 1rem;
    color: #333;
    text-align: left;
}

.button-loading {
    position: relative;
    pointer-events: none;
}

.button-loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Unified Input Styling */
.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="date"],
.input-group input[type="tel"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%; /* Ensure the input fields take the full width of their container */
}

/* Signature Pad Styling */
.signature-pad {
    width: 100%; /* Ensure the canvas spans the full width of its container */
    height: 200px; /* Set a fixed height for the canvas */
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #fafafa;
    cursor: crosshair;
}

/* Signature Container Style */
.signature-container {
    text-align: left;
    margin-top: 10px;
}

/* Clear Signature Button Styling */
.clear-signature {
    padding: 8px 16px;
    background-color: #f44336; /* Red color for clear action */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px; /* Spacing between the button and the pad */
    display: block; /* Ensure the button is a block to place it below */
}

.clear-signature:hover {
    background-color: #d32f2f; /* Darker shade for hover effect */
}

/* Placeholder Styling */
.input-group input::placeholder {
    text-align: left;
    opacity: 0.6;
}

/* Checkbox Group Styling */
.checkbox-group {
    margin: 10px 0;
    text-align: left; /* Ensures checkboxes are left-aligned */
}

/* Checkbox Label Styling */
.checkbox-label {
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    margin-left: 2px; /* Fine-tune spacing for alignment */
    cursor: pointer;
}

/* Section Titles Styling */
.section-title {
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #333; /* Title color for sections */
}

/* Terms and Conditions Styling */
.terms {
    margin: 15px 0;
    text-align: justify;
    text-justify: inter-character;
    color: #4d4d4d; /* Slightly lighter dark gray */
}

.terms ul {
    margin: 10px 0 10px 20px; /* Indentation for bullet points */
    padding-left: 20px; /* Ensures proper bullet display */
}

/* Button Styling */
.input-group button {
    padding: 12px;
    background-color: #ccc; /* Default disabled color */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    text-transform: uppercase;
    transition: background-color 0.3s; /* Smooth transition for visual feedback */
}

.input-group button:hover:not(:disabled) {
    background-color: #0056b3; /* Blue when enabled and hovered */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-container, .logo-container {
        margin: 10px;
        width: 90%;
    }

    .input-group input,
    .input-group button {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .input-group input,
    .input-group button {
        padding: 10px;
    }
        .header-container {
        flex-direction: row;
    }

    .header-title {
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
    }
}