/* assets/contact_styles.css - Yhteystietojen CSS-tyylit */

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

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

.contact-info-card {
    background: white;
    border-radius: 32px;
    padding: 50px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: sticky;
    top: 120px;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.contact-info-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: all 0.3s ease;
}

.contact-item:hover::before {
    transform: scaleY(1);
}

.contact-item:hover {
    transform: translateX(8px);
    background: white;
    box-shadow: var(--shadow-light);
}

.contact-item-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
}

.contact-item-info h4 {
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-item-info p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-item-info a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-item-info a:hover {
    color: #667eea;
}

/* Contact Form */
.contact-form-card {
    background: white;
    border-radius: 32px;
    padding: 50px;
    box-shadow: var(--shadow-light);
}

.contact-form-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
}

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

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

.priority-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.priority-option {
    display: none;
}

.priority-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    background: #f8fafc;
}

.priority-label:hover {
    border-color: #667eea;
    background: white;
}

.priority-option:checked + .priority-label {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

/* Form Messages */
.success-message {
    background: var(--green-gradient);
    color: white;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    box-shadow: var(--shadow-light);
}

.success-message strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.error-message {
    background: var(--red-gradient);
    color: white;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    box-shadow: var(--shadow-light);
}

.error-message strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

/* Emergency Section */
.emergency-section {
    padding: 80px 0;
    background: var(--red-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.emergency-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="100" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="800" r="150" fill="rgba(255,255,255,0.05)"/></svg>');
}

.emergency-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.emergency-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.emergency-section h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.emergency-section p {
    font-size: 1.2rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.emergency-phone {
    font-size: 2rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    padding: 16px 32px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.emergency-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-card,
    .contact-form-card {
        position: static;
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .priority-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .emergency-section {
        padding: 60px 0;
    }
    
    .emergency-phone {
        font-size: 1.5rem;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .contact-info-card,
    .contact-form-card {
        border-radius: 20px;
        padding: 24px 20px;
    }
    
    .contact-item {
        padding: 16px;
    }
    
    .contact-item-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}