/* Contact Form Styles */
.contact-form-wrapper {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.contact-form-wrapper h3 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}
.contact-form label span.req{
    color: #dc3545;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: #2C4D4D;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Убираем голубое подсвечивание при автозаполнении */
.contact-form .form-control:-webkit-autofill,
.contact-form .form-control:-webkit-autofill:hover,
.contact-form .form-control:-webkit-autofill:focus,
.contact-form .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important; /* Фон белый (#fff) */
    -webkit-text-fill-color: #333333 !important; /* Цвет текста (#333333) */
    border: 1px solid #e1e5e9 !important; /* Обычная граница */
    border-radius: 6px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:-webkit-autofill:focus {
    border-color: #2C4D4D !important;
    /* box-shadow: 0 0 0 3px rgba(44, 77, 77, 0.2) inset, 0 0 0 30px #fff inset !important; */
}

/* .contact-form .form-control:invalid {
    border-color: #dc3545;
} */

.contact-form .btn-primary {
    outline: none;
    background: #2C4D4D;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.contact-form .btn-primary:hover {
    background-color: #F4F4F4;
    color: #333333;
}

.contact-form .btn-primary:active, .contact-form .btn-primary:focus {
    transform: translateY(1px);
    border: none;
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form-wrapper {
        margin-top: 30px;
        padding: 20px;
    }
    
    .contact-form .row {
        margin: 0;
    }
    
    .contact-form .col-md-6 {
        padding: 0 5px;
    }
}

/* Success/Error messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
}
.custom-dropdown {
    position: relative;
    width: 100%;
    background-color: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 15px;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.dropdown-selected {
    padding: 10px 30px 10px 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C4D4D' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.dropdown-selected:hover {
    background-color: #F4F4F4;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #2C4D4D;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(44, 77, 77, 0.2);
    z-index: 1000;
}

.dropdown-option {
    padding: 8px 10px;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-option:hover {
    background-color: #2C4D4D;
    color: #fff;
}

.dropdown-option.selected {
    background-color: #2C4D4D;
    color: #fff;
    font-weight: bold;
}

/* Стили для скроллбара */
.dropdown-options::-webkit-scrollbar {
    width: 8px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: #F4F4F4;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: #2C4D4D;
    border-radius: 4px;
}

/* Поддержка Firefox */
.dropdown-options {
    scrollbar-color: #2C4D4D #F4F4F4;
    scrollbar-width: thin;
}

/* Отзывчивость */
@media only screen and (max-width: 600px) {
    .custom-dropdown {
        font-size: 14px;
    }

    .dropdown-selected {
        padding: 8px 25px 8px 8px;
        background-size: 10px;
    }

    .dropdown-option {
        font-size: 13px;
        padding: 6px 8px;
    }
}

/* Стили для required */
.req {
    color: #2C4D4D;
    font-weight: bold;
}

/* Скрытый инпут для формы */
.custom-dropdown input[type="hidden"] {
    display: none;
}