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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex: 1;
    position: relative;
}

.left-section {
    width: 50%;
    background: url('customer.webp') no-repeat center center/cover;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.left-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.3);
    z-index: 1;
}

.right-section {
    width: 50%;
    background: url('pexels-photo-164634.jpeg') no-repeat center center/cover;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.right-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.3);
    z-index: 1;
}

.left-section > *, .right-section > * {
    position: relative;
    z-index: 2;
}

.left-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; /* Hard bold */
    font-size: 60px; /* Larger size */
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Applies gradient to text */
    text-shadow: 1px 1px 0 #fdffff, -1px -1px 0 #00665e, 1px -1px 0 #00665e, -1px 1px 0 #00665e; /* Outline effect */
    position: absolute;
    top: 20px;
    left: 40px;
}

.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    width: 100%;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"] {
    padding: 12px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Style for select dropdown */
select {
    padding: 12px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    appearance: none; /* Remove default dropdown arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); /* Custom dropdown arrow */
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Style for dropdown options */
select option {
    background: #2c3e50; /* Dark background to match the theme */
    color: white; /* White text for visibility */
}

/* Ensure the placeholder option is styled */
select option[disabled] {
    color: rgba(255, 255, 255, 0.7); /* Lighter color for placeholder */
}

/* Focus state for select */
select:focus {
    outline: none;
    border-color: #00665e;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Placeholder text for date inputs (not supported in all browsers, but included for consistency) */
input[type="date"]::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.7);
}
input[type="date"]:-moz-placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}
input[type="date"]::-moz-placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}
input[type="date"]:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Style the date picker icon and text */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Makes the calendar icon white to match the form's theme */
}

input:focus {
    outline: none;
    border-color: #00665e;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.terms {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.terms a {
    color: #00B7EB;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

button {
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #58320d;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

button:disabled {
    color: white;
    background: #555;
    cursor: not-allowed;
    box-shadow: none;
}

button:enabled:hover {
    color: #00665e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

button:enabled:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

footer {
    background: #fff; /* Darker Teal */
    color: #00665e;
    padding: 10px; /* Reduced padding to minimize height */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}

.footer-left {
    flex: 1;
    text-align: left;
}

.footer-middle {
    flex: 2;
    text-align: center;
}

.footer-content a {
    color: #58320d;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.social-links {
    flex: 1;
    text-align: right;
}

.social-links a {
    margin: 0 5px; /* Reduced margin for compact layout */
    font-size: 14px;
}

.terms-container {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

.terms-container h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.terms-container h2 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-container p {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        min-height: 200vh; /* Ensure the container is tall enough to hold both sections */
    }

    .left-section, .right-section {
        width: 100%;
        padding: 20px;
        height: 100vh; /* Each section takes the full viewport height */
        min-height: 100vh; /* Ensures the section is at least the viewport height */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content vertically within the section */
        background-attachment: fixed; /* Keeps the background image fixed while scrolling */
    }

    .left-section {
        background-position: center;
    }

    .right-section {
        background-position: center;
    }

    .left-section h1 {
        font-size: 32px;
        position: static;
        text-align: center;
        margin-bottom: 20px;
    }

    .form-container {
        align-items: center;
    }

    form {
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .footer-left, .footer-middle, .social-links {
        text-align: center;
        flex: none;
    }
}