/* Define Root Variables for Light and Dark Modes */
:root {
    --background-color: #f4f4f4;
    --text-color: #333;
    --header-background: #27ae60;
    --button-background: #27ae60;
    --button-hover: #2ecc71;
    --form-background: #fff; /* Add form background variable */
    --alert-background-danger: #e74c3c;
    --alert-background-success: #2ecc71;
}

body.dark-mode {
    --background-color: #2c3e50;
    --text-color: #ecf0f1;
    --header-background: #34495e;
    --button-background: #34495e;
    --button-hover: #1abc9c;
    --form-background: #34495e; /* Dark mode form background */
}

/* Apply the form background color */
form {
    background-color: var(--form-background);
    padding: 20px;
    margin: 20px auto;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
}

/* Other styles remain the same */


body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Header Section */
.pos {
    background-color: var(--header-background);
    padding: 10px;
    text-align: center;
    position: relative;
}

h1 {
    margin: 0;
}

/* Logo Styling */
.center-logo {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.center-logo img {
    width: 150px;
}

/* Page Title */
.page-title h1 {
    font-size: 23px;
    text-align: center;
    padding: 10px;
    margin-top: 12px;
    background-color: var(--form-background);
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

 

label {
    display: block;
    margin: 10px 0 5px;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 93%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    background-color: var(--button-background);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
        box-shadow: 2px 3px 6px 2px rgb(0 0 0 / 74%);
}

button i {
    margin-right: 5px;
}

button:hover {
    background-color: var(--button-hover);
}

//* Dark Mode Toggle Button */
.toggle-theme {
    position: fixed; /* Fix the button to stay in place when scrolling */
    top: 20px; /* Distance from the top of the page */
    right: 20px; /* Distance from the right of the page */
    background-color: var(--button-background); /* Background color based on theme */
    color: var(--text-color); /* Text color based on theme */
    border: none; /* Remove border */
    padding: 10px;
    border-radius: 50%; /* Make the button round */
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Add shadow for effect */
    z-index: 1000; /* Make sure the button stays on top of other elements */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.toggle-theme:hover {
    background-color: var(--button-hover); /* Change background color on hover */
}

.toggle-theme i {
    margin: 0;
    padding: 0;
    font-size: 20px; /* Icon size */
}

/* Example transition for dark mode colors */
body.dark-mode .toggle-theme {
    background-color: var(--button-background);
    color: var(--text-color);
}


/* Alert Styles */
.alert {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.alert-danger {
    background-color: #e74c3c;
    color: white;
}

.alert-success {
    background-color: #2ecc71;
    color: white;
}

/* Footer Styles */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: ;
    bottom: 0;
    width: 100%;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title h1 {
        font-size: 18px;
    }

    .center-logo img {
        width: 100px;
    }

     

    label,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }
}
