body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: url('ws.jpeg') no-repeat center center;
    background-size: cover; /* Ensures the image fills the entire screen */
    background-attachment: fixed; /* Prevents movement while scrolling */
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
}

/* ✅ Fix for ultra-wide screens */
@media (min-width: 1400px) {
    body {
        background-size: 100% auto; /* Makes sure width fills the screen */
    }
}

/* ✅ Fix for mobile (prevents excessive zoom) */
@media (max-width: 768px) {
    body {
        background-size: cover; /* Prevents cropping issues on mobile */
        background-position: center top;
    }
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.logo {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
}

@media (max-width: 600px) {
    .logo {
        width: 100px;
        top: 2%;
    }
    .container, .form-container {
        width: 95%;
    }
}

.container, .form-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(12px);
}

h1, h2 {
    color: #fff;
}

p {
    color: #ddd;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.1s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
    transform: scale(1.02);
}

.contact {
    margin-top: 20px;
    font-size: 14px;
    color: #ccc;
}

.form-container {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* ✅ Input & Textarea Styling */
.form-container input, 
.form-container textarea {
    width: 95%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid rgba(200, 200, 200, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: rgba(50, 50, 50, 0.8); /* Changed to faded black */
    font-family: inherit;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

/* ✅ Input Fields When Focused (Active) */
.form-container input:focus, 
.form-container textarea:focus {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: rgba(30, 30, 30, 0.9); /* Darker black for contrast */
    outline: none;
}

/* ✅ Autofill Background Fix */
.form-container input:-webkit-autofill,
.form-container input:-webkit-autofill:hover, 
.form-container input:-webkit-autofill:focus, 
.form-container input:-webkit-autofill:active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: rgba(50, 50, 50, 0.8) !important;
    -webkit-text-fill-color: rgba(50, 50, 50, 0.8) !important;
    box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.2) inset !important;
    transition: background 5000s ease-in-out 0s;
}

/* ✅ Placeholder Text - Matches Form */
.form-container input::placeholder,
.form-container textarea::placeholder {
    color: rgba(80, 80, 80, 0.8);
    font-size: 14px;
    opacity: 1;
}

/* ✅ Checkbox & Radio Button Styling */
.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.checkbox-group label, .radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
}

.checkbox-group input[type="checkbox"], .radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #007bff;
    cursor: pointer;
}

/* ✅ Improved Button Spacing */
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.form-container button {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
    padding: 14px;
    width: 48%;
    border: none;
    border-radius: 5px;
}

.form-container button:hover {
    background-color: #0056b3;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

/* ✅ Error Message - Matches Form */
.error-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 20, 0.7);
    color: #ffffff;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: normal;
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 420px;
}

/* ✅ Error Message Button - Blue Theme */
.error-message button {
    margin-top: 12px;
    padding: 12px 24px;
    border: none;
    background: #007bff;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.1s ease;
    width: 100%;
    backdrop-filter: blur(8px);
}

.error-message button:hover {
    background: #0056b3;
    transform: scale(1.02);
}
