/* Base Styles */
:root {
    --primary-color: #1f6694; /* Глубокий голубой */
    --secondary-color: #521c61; /* Роскошный пурпурный */
    --accent-color: #c49a6c; /* Золотистый оттенок */
    --dark-color: #2d2d2d; /* Глубокий чёрный */
    --light-color: #fafafa; /* Очень светлый фон */
    --gray-color: #e0e0e0; /* Нейтральный серый */
    --success-color: #16a085; /* Мягкий зелёный */
    --text-color: #333333; /* Глубокий серый */
    --light-text: #7d7d7d; /* Светлый серый */
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.3rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: #1565c0;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary-alt {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: #ffffff30;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #ffffff;
    color: #ffffff;
    background-color: #ffffff30;
}

.btn-outline:hover {
    border: 2px solid #ffffff;
    color: #ffffff;
    background-color: #ffffff30;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 38px;
    width: auto;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav li {
    margin-left: 30px;
}

.desktop-nav a {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background-color: var(--white);
    z-index: 1001;
    padding: 50px 30px;
    transition: var(--transition);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

.mobile-nav ul {
    list-style: none;
    margin-top: 30px;
}

.mobile-nav li {
    margin-bottom: 20px;
}

.mobile-nav a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-color);
}

.mobile-contacts {
    margin-top: 40px;
}

.mobile-contacts a {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.mobile-contacts i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('https://thavorn.asia/templates/thavorn_new/img/060A7804.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Stats Section */
.stats {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    box-shadow: var(--shadow);
}

.stats .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1rem;
    opacity: 0.9;
}

/* Selling Process Section */
.selling-process {
    background-color: var(--light-color);
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.step {
    flex-basis: calc(25% - 30px);
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    margin-bottom: 30px;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.step p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Form Section */
.form-section {
    background-color: var(--white);
}

.form-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.form-content {
    flex-basis: 50%;
    padding-right: 50px;
}

.form-image {
    flex-basis: 45%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

#property-form {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--light-text);
    text-align: center;
    margin-top: 15px;
}

/* Why Us Section */
.why-us {
    background-color: var(--white);
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.advantage-card:hover {
    border-bottom: 3px solid var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.advantage-card p {
    color: var(--text-color);
}

/* Selling Tips Section */
.selling-tips {
    background-color: var(--light-color);
}

.tips-container {
    margin-bottom: 50px;
}

.tip {
    display: flex;
    margin-bottom: 40px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tip-image {
    flex-basis: 30%;
    min-width: 250px;
    overflow: hidden;
}

.tip-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tip:hover .tip-image img {
    transform: scale(1.05);
}

.tip-content {
    flex-basis: 70%;
    padding: 30px;
}

.tip-content h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.tip-content h3 span {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
    font-size: 0.9rem;
}

.tip-content p {
    color: var(--text-color);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--white);
    position: relative;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.testimonial-slide {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.testimonial-content {
    flex-basis: 55%;
    padding: 40px;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
    font-style: normal;
}

.testimonial-property {
    flex-basis: 40%;
}

.testimonial-property img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.testimonial-prev,
.testimonial-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* FAQ Section */
.faq {
    background-color: var(--light-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.faq-item {
    background-color: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(30, 136, 229, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Featured Sales Section */
.featured-sales {
    background-color: var(--white);
}

.sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.sale-item {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sale-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.sale-image {
    position: relative;
    height: 220px;
}

.sale-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sale-badge {
    position: absolute;
    top: 15px;
    right: 0;
    background-color: var(--success-color);
    color: var(--white);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 3px 0 0 3px;
}

.sale-info {
    padding: 20px;
}

.sale-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.sale-location {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.sale-location i {
    margin-right: 5px;
    color: var(--primary-color);
}

.sale-quote {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-color);
    padding: 10px;
    background-color: rgba(30, 136, 229, 0.05);
    border-left: 3px solid var(--primary-color);
}

/* Final CTA Section */
.final-cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.final-cta h2 {
    color: var(--white);
}

.final-cta p {
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-option {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 200px;
    transition: var(--transition);
    cursor: pointer;
}

.contact-option:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.contact-option i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-option h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--white);
}

.contact-option a {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.final-cta .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.final-cta .btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 70px 0 20px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo {
    flex-basis: 25%;
    margin-bottom: 30px;
}

.footer-logo p {
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 200px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    flex-basis: 45%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex-basis: 30%;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--light-text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    flex-basis: 25%;
}

.footer-contact h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.contact-item i {
    margin-right: 10px;
    margin-top: 5px;
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
}

.policy-links {
    display: flex;
    gap: 20px;
}

.policy-links a {
    color: var(--light-text);
    font-size: 0.8rem;
}

/* Mobile Action Buttons */
.mobile-action-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 99;
}

.mobile-call,
.mobile-whatsapp {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.mobile-call {
    background-color: var(--primary-color);
    color: var(--white);
}

.mobile-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.mobile-call:hover,
.mobile-whatsapp:hover {
    transform: scale(1.1);
}

/* Mobile Callback Form */
.mobile-callback-form {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 98;
    border-radius: 15px 15px 0 0;
    transform: translateY(calc(100% - 50px));
    transition: var(--transition);
    display: none;
}

.mobile-callback-form.active {
    transform: translateY(0);
}

.callback-toggle {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
}

.callback-toggle i {
    margin-left: 10px;
    transition: var(--transition);
}

.mobile-callback-form.active .callback-toggle i {
    transform: rotate(180deg);
}

.callback-form-content {
    padding: 20px;
}

.callback-form-content input {
    margin-bottom: 15px;
}

/* Media Queries */
@media (max-width: 1100px) {
    .step {
        flex-basis: calc(50% - 20px);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .form-content, .form-image {
        flex-basis: 100%;
    }
    
    .form-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .tip {
        flex-direction: column;
    }
    
    .tip-image {
        flex-basis: 100%;
    }
    
    .testimonial-content, .testimonial-property {
        flex-basis: 100%;
    }
    
    .testimonial-property {
        height: 300px;
    }
    
    .footer-logo, .footer-links, .footer-contact {
        flex-basis: 100%;
    }
    
    .mobile-action-buttons {
        display: flex;
    }
    .mobile-callback-form {
        display: block;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats .container {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 20px;
    }
    
    .step {
        flex-basis: 100%;
    }
    
    .advantages {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-option {
        width: 100%;
        max-width: 300px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .footer-column {
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .policy-links {
        justify-content: center;
    }
}

/* Стилизация выпадающих списков (select) */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--white);
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2337474f' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
}

select:hover {
    border-color: #bbb;
}

select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

/* Стилизация отдельных опций (только для Firefox) */
select option {
    background-color: var(--white);
    color: var(--text-color);
    padding: 10px;
}

/* Стилизация плейсхолдера для select (first disabled option) */
select option[disabled] {
    color: #aaa;
}

/* Исправление отображения для IE и Edge */
select::-ms-expand {
    display: none;
}

/* Добавление стилизации для активного состояния */
select:active {
    border-color: var(--primary-color);
}

/* Стили для выпадающего списка на мобильных устройствах */
@media (max-width: 768px) {
    select {
        font-size: 16px; /* Предотвращает масштабирование на iOS */
        padding: 12px 35px 12px 15px;
        background-position: right 15px center;
    }
}

/* Обеспечение согласованности стилей между инпутами и селектами */
input, select {
    height: 48px;
    font-weight: 400;
    box-sizing: border-box;
    background-color: var(--white);
}

/* Анимация фокуса для обоих типов полей */
input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Стили для состояния ошибки */
input.error, select.error {
    border-color: #ff5252;
}

input.error:focus, select.error:focus {
    box-shadow: 0 0 0 2px rgba(255, 82, 82, 0.2);
}

/* Согласованное отображение disabled состояний */
input:disabled, select:disabled {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 2001;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    display: none;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 150px);
}

.modal-body p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.modal-form .form-group {
    margin-bottom: 15px;
}

.modal-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.modal-form .btn {
    margin-top: 10px;
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--light-text);
    text-align: center;
    margin-top: 15px;
}

/* Стили для руководства */
.guide-preview {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.guide-preview img {
    width: 140px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.guide-features {
    list-style: none;
    flex: 1;
}

.guide-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.guide-features li i {
    color: var(--success-color);
    margin-right: 10px;
}

/* Уведомление об успешной отправке */
.notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--success-color);
    color: white;
    border-radius: 8px;
    padding: 15px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2002;
    transition: bottom 0.3s ease;
    display: flex;
    align-items: center;
    min-width: 300px;
}

.notification.active {
    bottom: 20px;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-content i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.notification-content p {
    margin: 0;
    font-weight: 500;
}

/* Адаптивность для модальных окон */
@media (max-width: 600px) {
    .modal {
        width: 95%;
    }
    
    .guide-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .guide-preview img {
        width: 180px;
        margin-bottom: 15px;
    }
    
    .guide-features li {
        justify-content: flex-start;
    }
    
    .notification {
        min-width: 90%;
        padding: 15px;
    }
}

/* Стили для многошаговой формы */
.multi-step-form .form-step-container {
    position: relative;
    overflow: hidden;
}

.multi-step-form .form-step {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.multi-step-form .form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideIn 0.3s forwards;
}

.multi-step-form .form-step.leaving {
    animation: slideOut 0.3s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.form-step[data-step="1"] .form-actions {
    justify-content: flex-end;
}

/* Индикатор прогресса */
.form-progress-container {
    margin-bottom: 25px;
}

.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    max-width: 200px;
}

.progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-color);
    border: 2px solid var(--gray-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.progress-step.completed {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.progress-step.completed::after {
    content: '✓';
}

.progress-line {
    flex-grow: 1;
    height: 3px;
    background-color: var(--gray-color);
    position: relative;
    z-index: 1;
}

.progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-line.half::after {
    width: 50%;
}

.progress-line.full::after {
    width: 100%;
}

/* Добавим стили для валидации полей */
.field-error {
    color: #ff5252;
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 16px;
}

.form-group input.invalid, 
.form-group select.invalid {
    border-color: #ff5252;
}

/* Стили для кнопок навигации */
.btn-secondary-alt {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary-alt:hover {
    background-color: rgba(31, 102, 148, 0.1);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .progress-step {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

.iti.iti--allow-dropdown {
    width: 100%;
}