   body {
            font-family: 'Poppins', sans-serif;
            height: 100vh;
            background: #FFF;
            margin: 0;
            color: #333;
            display: flex;
            flex-direction: column; /* Change to column to organize content vertically */
            align-items: flex-start; /* Align items to the start of the page */
            justify-content: center; /* Center items vertically */
            padding-left: 20px; /* Add some padding on the left */
        }
    
        .header {
            display: flex;
            align-items: center;
            justify-content: center; /* Center .header content */
            text-align: center; /* Center text within .header */
            margin-bottom: 30px;
            margin-top: 5px;
            width: 100%;
        }
    
        .logo {
            width: 48px; /* Adjusted for better visibility */
            height: auto;
            margin-right: 25px;
            margin-bottom: 10px;
        }
    
        h2 {
            font-size: 28px; /* Slightly larger for impact */
            color: #00944f;
            margin: 0;
        }
    
        /* Ensuring the form is centered within the remaining space */
        form {
            margin-left: auto;
            margin-right: auto;
            background: #fff;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            width: 90%; /* Adjust based on preference */
            max-width: 400px;
            box-sizing: border-box;
        }
    
        /* Responsive adjustments */
        @media (max-width: 768px) {
            body {
                align-items: center; /* Center align for smaller screens */
                padding-left: 0; /* Remove left padding on smaller screens */
            }
            .header {
                justify-content: center; /* Center header content on smaller screens */
                text-align: center;
            }
        }
        
        .form-group {
            position: relative;
            margin-bottom:16px;
        }
        
        input[type="text"], input[type="email"], input[type="tel"] {
            width: 100%;
            padding: 15px;
            border: 1px solid #ccc; /* Light border for inputs */
            border-radius: 4px;
            outline: none;
            transition: border-color 0.3s, box-shadow 0.3s;
            font-size: 16px;
            background-color: #fafafa;
            color: #333;
            box-sizing: border-box;
            transition: all 0.3s ease;
        }
        
        input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus {
            border-color: #018562;
            
        }
        
        label {
            position: absolute;
            top: 16px;
            left: 15px;
            color: #777;
            transition: all 0.3s;
            pointer-events: none;
            background: transparent;
            padding: 0 5px;
        }
        
        input[type="text"]:focus + label, input[type="email"]:focus + label, input[type="tel"]:focus + label,
        input[type="text"]:not(:placeholder-shown) + label, input[type="email"]:not(:placeholder-shown) + label, input[type="tel"]:not(:placeholder-shown) + label {
            top: -12px;
            color: #018562;
            font-size: 14px;
            font-weight: 500;
            background: #fff;
        }
        
        .error-container {
            display: flex;
            align-items: center;
            color: #d9534f;
            font-size: 13px;
            margin-top: 5px;
            display: none;
            margin-left: 3px;
        }
        
        .error-icon {
            color: #d9534f;
            font-size: 15px;
            margin-right: 5px;
        }

        input[type="submit"] {
            height: 45px;
            width: 100%;
            float: right;
            margin-top: 2px;
            padding: 12px 26px;
            border-radius: 3px;
            border: none;
            outline: none;
            background-color: #10a37f;
            color: #ffffff;
            font-family: "Montserrat", sans-serif;
            font-size: 17px;
            font-weight: bold;
            letter-spacing: 1px;
            text-transform: uppercase;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
          }
          input[type="submit"]:hover {
            background-color: #0c7d62;
          }
        button {
            padding: 12px 20px;
            border: none;
            border-radius: 4px;
            background: linear-gradient(45deg, #018562, #018562);
            color: white;
            cursor: pointer;
           
            width: 100%;
            font-size: 16px;
            box-sizing: border-box;
        }
        
        button:hover {
            background: #018562;
            transform: translateY(-2px);
        }
        
        @media (max-width: 600px) {
            form {
                padding: 30px 20px;
            }
        }
        
        .sidebar {
            position: fixed;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            background: #fff; /* Matching form background color */
            border-radius: 0 8px 8px 0;
            padding: 20px;
            box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }
        
        .toggle-button {
            background: #018562; /* Primary color matching the form */
            color: white;
            border: none;
            padding: 12px 18px;
            margin: 10px 0;
            cursor: pointer;
            transition: transform 0.3s ease;
            border-radius: 4px;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
       
        
        .toggle-button:hover {
            background: #016644; /* Darker shade for hover */
            transform: translateY(-2px);
        }
        
        @media (max-width: 600px) {
            .sidebar {
                top: initial;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                flex-direction: row;
                width: auto;
                border-radius: 8px 8px 0 0;
                padding: 10px;
            }
        
            .toggle-button {
                margin: 0 5px;
            }
        }
        
        .theme-toggle {
            position: fixed;
            right: 20px;
            top: 20px;
            z-index: 2000;
        }
        
        #themeToggleBtn {
            background: #018562;
            border: none;
            padding: 10px;
            border-radius: 50%;
            cursor: pointer;
            position: relative;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease;
        }
        
        #themeToggleBtn i {
            position: absolute;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        
        #themeToggleBtn .fa-sun {
            transform: scale(0);
            opacity: 0;
        }
        
        body.dark-mode #themeToggleBtn {
            background: #333;
        }
        
        body.dark-mode #themeToggleBtn .fa-sun {
            transform: scale(1);
            opacity: 1;
        }
        
        body.dark-mode #themeToggleBtn .fa-moon {
            transform: scale(0);
            opacity: 0;
        }
        
        
/* Dark Mode Styles */
body.dark-mode {
    background: #262626; /* Dark background for the body */
    color: #f1f1f1; /* Light text color for better readability */
}

body.dark-mode form {
    background: #404040;; /* Dark background for the form */
    
}
body.dark-mode h2{
    color:#55a8a8 ;
}
body.dark-mode input[type="text"], 
body.dark-mode input[type="email"], 
body.dark-mode input[type="tel"] {
    background-color: #404040; /* Darker input fields */
    color: #ddd; /* Lighter text color */
    border-color: #555; /* Darker border color */
}

body.dark-mode input[type="text"]:focus, 
body.dark-mode input[type="email"]:focus, 
body.dark-mode input[type="tel"]:focus {
    border-color: #55a8a8; /* Brighter border color on focus */
    
}

body.dark-mode input[type="text"]:focus + label, 
body.dark-mode input[type="email"]:focus + label, 
body.dark-mode input[type="tel"]:focus + label {
    color: #55a8a8; /* Adjusted color for visibility */
    background: #404040; /* Removing the white background */
    top: -12px;
    font-size: 14px;
    font-weight: 500;
}

/* Additional styles for labels in dark mode */
body.dark-mode label {
    color: #bbb; /* Lighter color for visibility */
    background: transparent; /* Ensuring labels don't have a different background */
}


body.dark-mode .error-container,
body.dark-mode .error-icon {
    color: #ff6b6b; /* Error color in dark mode */
}

body.dark-mode button {
    background: linear-gradient(45deg, #55a8a8, #55a8a8); /* Gradient background for button */
    /* Rest of button styles remain the same */
}

body.dark-mode .sidebar {
    background: #333; /* Dark background for the sidebar */
}

body.dark-mode .toggle-button {
    background: #55a8a8; /* Matching primary color for buttons */
    /* Rest of toggle-button styles remain the same */
}

body.dark-mode .toggle-button:hover {
    background: #499797; /* Slightly darker on hover */
}
body.dark-mode input[type="text"]:not(:placeholder-shown) + label, 
body.dark-mode input[type="email"]:not(:placeholder-shown) + label, 
body.dark-mode input[type="tel"]:not(:placeholder-shown) + label {
    background: #404040; /* Ensure background is transparent for non-empty fields */
    color: #55a8a8; /* Adjusted color for non-empty fields */
}
.spaced {
    margin-left: -9px; /* Adjust the spacing as needed */
}

.spaced {
    line-height: 1.9;
}

/* Стили для intlTelInput */
.iti {
    width: 100%;
    position: relative;
}

.iti input {
    width: 100%;
    padding-left: 110px !important;
}

.iti__flag-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 1px;
    background-color: transparent;
}

.iti__selected-flag {
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 12px 0 15px;
    border-radius: 4px 0 0 4px;
    border-right: 1px solid #ccc;
    background-color: #fafafa;
    height: calc(100% - 2px);
    margin: 1px 0;
    min-width: 90px;
}

.iti__selected-flag:hover {
    background-color: #f0f0f0;
}

.iti__flag {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    background-image: url('img/flags.png');
    background-repeat: no-repeat;
    background-color: #bebebe;
    background-position: 20px 0;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url('img/flags@2x.png');
        background-size: 5652px 15px;
    }
}

.iti__arrow {
    margin-left: 6px;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid #555;
}

.iti__arrow--up {
    border-top: none;
    border-bottom: 4px solid #555;
}

.iti__country-list {
    position: absolute;
    z-index: 2;
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0 0 0 -1px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    background-color: white;
    border: 1px solid #ccc;
    white-space: nowrap;
    max-height: 200px;
    overflow-y: scroll;
}

.iti__country {
    padding: 5px 10px;
    outline: none;
}

.iti__country.iti__highlight {
    background-color: rgba(0, 0, 0, 0.05);
}

.iti__country-name {
    margin-left: 6px;
}

.iti__dial-code {
    color: #999;
}

.iti__divider {
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #ccc;
}

/* Тёмная тема для intlTelInput */
body.dark-mode .iti__selected-flag {
    background-color: #2c2c2c;
    border-right-color: #555;
}

body.dark-mode .iti__selected-flag:hover {
    background-color: #3c3c3c;
}

body.dark-mode .iti__country-list {
    background-color: #2c2c2c;
    border-color: #555;
}

body.dark-mode .iti__country.iti__highlight {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .iti__dial-code {
    color: #ccc;
}

body.dark-mode .iti__arrow {
    border-top-color: #ccc;
}

body.dark-mode .iti__arrow--up {
    border-bottom-color: #ccc;
    border-top-color: transparent;
}

/* Исправляем позиционирование лейбла для телефонного поля */
.form-group:has(.iti) label {
    left: 110px; /* Сдвигаем правее, чтобы не перекрывать флаг и код */
}

/* Скрываем лейбл когда поле телефона в фокусе или заполнено */
.form-group:has(.iti input:focus) label,
.form-group:has(.iti input:not([value=""])) label,
.form-group:has(.iti input[value]:not([value=""])) label {
    display: none;
}

/* Альтернативный способ скрытия лейбла через JavaScript класс */
.form-group.phone-focused label,
.form-group.phone-filled label {
    display: none;
}