/**
 * Contact Page Component CSS
 * Styles for contact information, form, and map sections
 */

/* ==========================================================================
   Contact Section Wrapper
   ========================================================================== */

.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

/* ==========================================================================
   Contact Information Section
   ========================================================================== */

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark, #2c2c2c);
}

.contact-info > p,
.contact-info .contact-description {
    color: var(--text-muted, #6c757d);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color, #484169) 0%, #5e5582 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark, #2c2c2c);
}

.contact-text p,
.contact-text a {
    color: var(--text-muted, #6c757d);
    line-height: 1.6;
    text-decoration: none;
}

.contact-text a:hover {
    color: var(--primary-color, #484169);
}

/* Social Links */
.social-links-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(72, 65, 105, 0.1);
}

.social-links-contact h4 {
    margin-bottom: 1rem;
    color: var(--text-dark, #2c2c2c);
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-color, #484169);
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.social-icon:hover {
    background: var(--primary-dark, #342e4d);
    transform: translateY(-3px);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(72, 65, 105, 0.4);
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color, #484169);
}

.form-description {
    color: var(--text-muted, #6c757d);
    margin-bottom: 2rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark, #2c2c2c);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color, #484169);
    box-shadow: 0 0 0 3px rgba(72, 65, 105, 0.1);
}

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

.contact-form button[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color, #484169);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-form button[type="submit"]:hover {
    background: var(--primary-dark, #342e4d);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 65, 105, 0.3);
}

.contact-form button[type="submit"] svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Map Section
   ========================================================================== */

.map-section {
    margin-top: 4rem;
}

.map-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.map-container .map-embed {
    display: block;
    height: 100%;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(72, 65, 105, 0.95);
    padding: 1.5rem 2.5rem;
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-marker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.map-marker svg {
    width: 40px;
    height: 40px;
}

.map-marker span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ==========================================================================
   Form Messages (Success/Error)
   ========================================================================== */

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-message.success::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #155724;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.form-message.error::before {
    content: "×";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #721c24;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .map-container {
        height: 300px;
    }

    .form-message {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
}
