/* Contact Page Styles - SOVBau (Based on v13 design) */
/* Все стили ограничены контекстом страницы контактов */

/* Service Hero Section for Contact */
.service-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.service-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.service-hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
}

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

.service-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 0.7;
}

/* Contact Information Section */
.contact-info-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Contact Layout */
.contact-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

/* Contact Form Section */
.contact-form-section h3 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group:not(.form-row > .form-group) {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(70, 115, 175, 0.1);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
    width: auto;
    flex-shrink: 0;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Contact Details Section */
.contact-details h3 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-card .contact-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-card p strong {
    color: var(--text-primary);
}

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

.contact-card a:hover {
    color: var(--primary-dark);
}

.contact-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.contact-details .contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.contact-details .contact-btn.whatsapp {
    background: #25D366;
}

.contact-details .contact-btn.whatsapp:hover {
    background: #1DA851;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.map-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-top: 40px;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    min-height: 400px;
}

.map-placeholder .map-icon {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.map-placeholder h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.map-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.service-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 600px;
}

.area-list h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.area-list ul {
    list-style: none;
    padding: 0;
}

.area-list li {
    color: var(--text-secondary);
    padding: 8px 0;
    font-size: 0.95rem;
}

/* Address Section */
.address-section {
    padding: 80px 0;
}

.address-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.address-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.address-card h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 600;
}

.address-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.address-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.address-card .address-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.address-item strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.address-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.social-contact {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.social-contact h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 600;
}

.social-links-large {
    margin-bottom: 20px;
}

.social-contact .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    min-width: 140px;
    background: #1877f2;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition);
}

.social-contact .social-link:hover {
    background: #166fe5;
    transform: translateY(-2px);
    color: white;
}

.social-contact .social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-contact .social-link.facebook {
    background: #1877f2;
}

.social-contact .social-link.facebook:hover {
    background: #166fe5;
}

.social-contact p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .address-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-areas {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .address-card,
    .social-contact {
        padding: 30px 20px;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-details .contact-btn {
        justify-content: center;
    }
    
    .map-placeholder {
        padding: 40px 20px;
    }
    
    .service-areas {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .service-hero {
        min-height: 300px;
        height: 40vh;
    }
    
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .service-hero p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-form-section h3,
    .contact-details h3 {
        font-size: 1.5rem;
    }
    
    .contact-card h4 {
        font-size: 1.2rem;
    }
    
    .address-card h3 {
        font-size: 1.5rem;
    }
}

/* Loading and Success States */
.form-loading {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}