/**
 * ZIN Fashion - Contact Page Styles
 * Location: /public_html/dev_staging/assets/css/contact.css
 * Updated: Centered icons on mobile and reduced map height
 */

/* ========================================
   Contact Header
   ======================================== */
.contact-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Contact Content
   ======================================== */
.contact-content {
    padding: 80px 0;
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

/* ========================================
   Contact Form
   ======================================== */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
}

.contact-form-wrapper h2 {
    color: var(--gold-primary);
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.contact-form-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
}

.contact-form {
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--gold-primary);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px 30px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i {
    font-size: 20px;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* ========================================
   Contact Information
   ======================================== */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card,
.quick-links-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 35px;
    border-radius: 8px;
}

.contact-info-card h3,
.quick-links-card h3 {
    color: var(--gold-primary);
    margin-bottom: 25px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 15px;
}

.contact-info-card h3::after,
.quick-links-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--bg-primary);
    font-size: 18px;
}

.info-content h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.info-content a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--gold-primary);
}

/* Social Links */
.social-contact {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.social-contact h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1rem;
}

.social-contact .social-links {
    display: flex;
    gap: 12px;
}

.social-contact .social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-contact .social-links a:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* Quick Links */
.quick-links-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links-card li {
    margin-bottom: 15px;
}

.quick-links-card li:last-child {
    margin-bottom: 0;
}

.quick-links-card a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.quick-links-card a:hover {
    background: var(--bg-hover);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateX(5px);
}

.quick-links-card i {
    color: var(--gold-primary);
    width: 20px;
}

/* ========================================
   Map Section
   ======================================== */
.contact-map {
    position: relative;
    height: 450px;
    background: var(--bg-secondary);
    margin-bottom: 0;
    overflow: hidden;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s ease;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-container:hover {
    filter: grayscale(0%);
}

.map-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    max-width: 350px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.map-info h3 {
    color: var(--gold-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.map-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.map-info .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   RTL Support
   ======================================== */
html[dir="rtl"] .contact-form-wrapper h2::after,
html[dir="rtl"] .contact-info-card h3::after,
html[dir="rtl"] .quick-links-card h3::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .info-item,
html[dir="rtl"] .quick-links-card a {
    flex-direction: row-reverse;
}

html[dir="rtl"] .quick-links-card a:hover {
    transform: translateX(-5px);
}

html[dir="rtl"] .checkbox-label {
    flex-direction: row-reverse;
}

html[dir="rtl"] .map-overlay {
    left: auto;
    right: 40px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1199px) {
    .contact-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .map-overlay {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .contact-header {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .contact-content {
        padding: 50px 0;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card,
    .quick-links-card {
        padding: 25px 20px;
    }
    
    /* Center icons above text on mobile */
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .info-icon {
        margin-bottom: 5px;
    }
    
    /* RTL support for centered mobile layout */
    html[dir="rtl"] .info-item {
        flex-direction: column;
        align-items: center;
    }
    
    /* Map adjustments for mobile */
    .map-overlay {
        position: static;
        max-width: none;
        margin: 20px;
        transform: none !important;
    }
    
    .contact-map {
        height: 400px; /* Reduced from 600px */
    }
}

@media (max-width: 575px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .contact-form-wrapper h2 {
        font-size: 1.4rem;
    }
    
    /* Social links centered on smallest screens */
    .social-contact {
        text-align: center;
    }
    
    .social-contact .social-links {
        justify-content: center;
    }
    
    .btn-full {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    /* Even smaller map on very small screens */
    .contact-map {
        height: 300px;
    }
    
    .map-info .btn {
        font-size: 13px;
        padding: 10px 16px;
    }
}