/* Стили для контактной секции с белым фоном */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-section {
    background: transparent;
    padding: 2.5rem 0;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.contact-section::before {
    display: none;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

/* Используем глобальные стили из base.css */
.section-title {
    margin-bottom: 3rem;
}



.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Форма слева - Улучшенный профессиональный дизайн */
.form-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 2rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: fit-content;
}

.form-container h3 {
    color: #2e7d32;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    color: #000000 !important;
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d0d0d0;
    background: #fafafa;
    border-radius: 6px;
    color: #333333;
    font-size: 0.875rem;
    transition: all 0.25s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9e9e9e;
    font-size: 0.85rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4caf50;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.08);
}

.cta-button {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
    width: auto;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    letter-spacing: 0.01em;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Чекбокс согласия на обработку данных */
.consent-group {
    margin: 1rem 0 1.25rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.consent-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.consent-group label {
    font-size: 0.75rem;
    color: #555;
    line-height: 1.5;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
}

.consent-group label a {
    color: #4caf50;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.consent-group label a:hover {
    color: #388e3c;
}

/* Контактная информация справа */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    background: white;
    border: 2px solid #e8f5e8;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.06);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.12);
    border-color: #4caf50;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 50%, #81c784 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

.contact-icon img {
    width: 0px;
    height: 0px;
}

.contact-content {
    flex: 1;
}

.contact-content a:not(.contact-link-bt) {
  color: #2e7d32; /* тёмно-зелёный */
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-content a:not(.contact-link-bt):hover {
  color: #1b5e20;
}
.call-hint {
  font-size: 0.95rem;
  color: #555;            /* тёмно-серый, нейтральный */
  margin-bottom: 0.5rem;
  font-style: italic;     /* можно курсивом для выделения */
}
.contact-content h3 {
    color: #2e7d32;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.contact-content p {
    color: #555;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.contact-link-bt,
.contact-link-bt:link,
.contact-link-bt:visited,
button.contact-link-bt {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 50%, #81c784 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    width: auto;
    text-align: center;
    border: none;          /* убираем дефолтную рамку у button */
    cursor: pointer;       /* чтобы выглядело как кнопка */
}

.contact-link-bt:hover,
button.contact-link-bt:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 50%, #66bb6a 100%);
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .form-container {
        padding: 2rem;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 6px 18px;
    }

    .form-container {
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .form-container h3 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem 0.85rem;
        font-size: 16px; /* Важно! Предотвращает zoom на iOS */
        border-radius: 8px;
        min-height: 44px; /* Минимальная высота для touch */
    }
    
    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.875rem;
        max-width: 200px;
        min-height: 44px; /* Touch-friendly */
        margin-top: 0.5rem;
    }
    
    .consent-group {
        margin: 1rem 0 1rem 0;
    }
    
    .consent-group label {
        font-size: 0.75rem;
        line-height: 1.6;
    }
    
    .consent-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 0.15rem;
    }

    .contact-item {
        padding: 1.5rem;
        flex-direction: row;
        gap: 1.25rem;
        border-radius: 12px;
    }
    
    .contact-icon {
        width: 52px;
        height: 52px;
    }
    
    .contact-content h3 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-content p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .contact-link-bt,
    button.contact-link-bt {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        min-height: 44px; /* Touch-friendly */
    }

    .container {
        padding: 0 1rem;
    }
}

/* Адаптивность для маленьких мобильных */
@media (max-width: 480px) {
    .contact-section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .section-badge {
        font-size: 0.7rem;
        padding: 5px 16px;
        margin-bottom: 1rem;
    }
    
    .contact-wrapper {
        gap: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }
    
    .form-container h3 {
        font-size: 1.15rem;
        margin-bottom: 1.15rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
        font-weight: 500;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem 0.9rem;
        font-size: 16px; /* Важно для iOS! */
        border-radius: 8px;
        min-height: 48px; /* Увеличено для удобства */
        -webkit-appearance: none; /* Убирает стандартные стили iOS */
    }
    
    .form-group textarea {
        min-height: 110px;
    }
    
    .cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.875rem;
        max-width: 100%;
        width: 100%;
        min-height: 48px;
        margin-top: 0.5rem;
        border-radius: 30px;
    }
    
    .consent-group {
        margin: 1.15rem 0 1.15rem 0;
        gap: 0.6rem;
    }
    
    .consent-group label {
        font-size: 0.75rem;
        line-height: 1.7;
    }
    
    .consent-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 0.2rem;
    }

    .contact-item {
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        border-radius: 12px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .contact-content h3 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-content p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .call-hint {
        font-size: 0.85rem;
    }
    
    .contact-link-bt,
    button.contact-link-bt {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
        min-height: 44px;
        width: auto;
        display: inline-block;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 360px) {
    .contact-section {
        padding: 1.25rem 0;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .form-container {
        padding: 1.25rem 1rem;
    }
    
    .form-container h3 {
        font-size: 1.1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem 0.85rem;
        font-size: 16px;
    }
    
    .contact-item {
        padding: 1.25rem 1rem;
    }
    
    .container {
        padding: 0 0.85rem;
    }
}

/* Landscape mode на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .contact-section {
        padding: 1.5rem 0;
    }
    
    .form-container {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
}

/* Улучшения для touch-устройств */
@media (hover: none) and (pointer: coarse) {
    .form-group input,
    .form-group textarea,
    .cta-button,
    .contact-link-bt {
        -webkit-tap-highlight-color: rgba(76, 175, 80, 0.1);
    }
    
    .cta-button:active {
        transform: scale(0.98);
    }
    
    .contact-item:hover {
        transform: none;
    }
}

/* Анимации появления */
.form-container,
.contact-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.form-container { animation-delay: 0.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Дополнительные стили для лучшего отображения */
.contact-section {
    border-top: none;
    border-bottom: none;
}

/* Стили для локальных иконок */
.contact-item:nth-child(1) .contact-icon {
    background-image: url('../images/phone.png');
    background-size: 50px 50px;
    background-repeat: no-repeat;
    background-position: center;
}

.contact-item:nth-child(2) .contact-icon {
    background-image: url('../images/mail.png');
    background-size: 50px 50px;
    background-repeat: no-repeat;
    background-position: center;
}

.contact-item:nth-child(3) .contact-icon {
    background-image: url('../images/geo.png');
    background-size: 50px 50px;
    background-repeat: no-repeat;
    background-position: center;
}

.status-message-footer {
    margin-top: 15px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

/* Успех */
.status-message-footer.success {
    background: #e6f9ed;
    color: #1e7d3c;
    border: 1px solid #28a745;
}

/* Ошибка */
.status-message-footer.error {
    background: #fdeaea;
    color: #a12626;
    border: 1px solid #dc3545;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
