/* contact.css - Стили для страницы контактов клуба SpinPG */

/* Contact Page Layout */
.contact-page {
    background: linear-gradient(135deg, #667eea0d 0%, #764ba20d 100%);
    min-height: calc(100vh - 70px);
    padding: 60px 0;
}

.contact-page h1 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.contact-page h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #FF6B35);
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.info-card p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
}

.info-card a:hover {
    color: #ff3300;
    transform: translateX(5px);
}

.info-card a::after {
    content: '→';
    position: absolute;
    right: -20px;
    opacity: 0;
    transition: all 0.3s;
}

.info-card a:hover::after {
    opacity: 1;
    right: -25px;
}

/* Working Hours */
.info-card p:last-of-type {
    margin-bottom: 0;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.info-card p:last-of-type:last-child {
    border-bottom: none;
}

/* Social Links Section */
.social-links {
    background: linear-gradient(135deg, var(--primary-color), #FF6B35);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    color: var(--white);
}

.social-links h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.social-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px;
    margin: 5px 10px 5px 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-link:first-of-type::before {
    content: 'f';
    font-weight: bold;
    font-size: 1.2rem;
}

.social-link:last-of-type::before {
    content: '📷';
    font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-form h2 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--white);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Alert Messages */
.alert {
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-weight: 500;
    position: relative;
    animation: alertSlide 0.3s ease-out;
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.success {
    background: #4caf50;
    color: var(--white);
    border-left: 5px solid #2e7d32;
}

.alert.error {
    background: #f44336;
    color: var(--white);
    border-left: 5px solid #c62828;
}

/* Map Section */
.map-full {
    margin-top: 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 450px;
    position: relative;
}

.map-full iframe {
    width: 100%;
    height: 100%;
    display: block;
    transition: all 0.3s;
}

.map-full:hover iframe {
    filter: brightness(1.05);
}

/* Form Button */
.contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color), #FF6B35);
    border: none;
    color: var(--white);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.contact-form .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-form .btn:hover::before {
    width: 300px;
    height: 300px;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    .info-card,
    .social-links {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 40px 0;
    }
    
    .contact-page h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .contact-form h2 {
        font-size: 1.5rem;
    }
    
    .map-full {
        height: 350px;
        margin-top: 40px;
    }
    
    .info-card p {
        font-size: 1rem;
    }
    
    .social-link {
        display: block;
        text-align: center;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .contact-page h1 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .info-card,
    .social-links {
        padding: 25px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px;
    }
    
    .map-full {
        height: 250px;
    }
    
    .alert {
        padding: 15px;
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .contact-page {
        background: none;
        padding: 20px;
    }
    
    .contact-form,
    .map-full,
    .social-links .btn {
        display: none;
    }
    
    .info-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .social-links {
        background: none;
        color: var(--secondary-color);
        border: 1px solid #ddd;
    }
    
    .social-link {
        color: var(--secondary-color);
        border: 1px solid #ddd;
        background: none;
    }
}

/* Loading State */
.contact-form.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.contact-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-bg);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Hover Effects */
.info-card p:first-of-type {
    position: relative;
    padding-left: 25px;
}

.info-card p:first-of-type::before {
    content: '📍';
    position: absolute;
    left: 0;
    top: 0;
}

.info-card p:nth-of-type(2) {
    position: relative;
    padding-left: 25px;
}

.info-card p:nth-of-type(2)::before {
    content: '📞';
    position: absolute;
    left: 0;
    top: 0;
}

.info-card p:nth-of-type(3) {
    position: relative;
    padding-left: 25px;
}

.info-card p:nth-of-type(3)::before {
    content: '✉️';
    position: absolute;
    left: 0;
    top: 0;
}

/* Working Hours Icons */
.info-card p:nth-of-type(4),
.info-card p:nth-of-type(5),
.info-card p:nth-of-type(6) {
    position: relative;
    padding-left: 25px;
}

.info-card p:nth-of-type(4)::before {
    content: '📅';
    position: absolute;
    left: 0;
    top: 0;
}

.info-card p:nth-of-type(5)::before {
    content: '📅';
    position: absolute;
    left: 0;
    top: 0;
}

.info-card p:nth-of-type(6)::before {
    content: '🏆';
    position: absolute;
    left: 0;
    top: 0;
}

/* Tooltip for contact info */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Focus Styles */
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form .btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Success Animation for Form Submission */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.alert.success {
    animation: successPulse 0.5s ease-out;
}