/**
 * Contact Page Styles - Homepage Inspired Design
 * 
 * @package Nyumba_Pro_Property_Management_System
 * @since 1.0.0
 */

/* CSS Variables for consistent theming */
:root {
    --primary-brown: #4B382F;
    --accent-mustard: #E1AA05;
    --text-light: #666;
    --gradient-primary: linear-gradient(135deg, #4B382F 0%, #6B5B4F 100%);
    --gradient-accent: linear-gradient(135deg, #E1AA05 0%, #f4d03f 100%);
}

/* Premium Hero Section */
.contact-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background: var(--gradient-primary);
}

.contact-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-hero .hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(225, 170, 5, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(75, 56, 47, 0.1) 0%, transparent 50%);
}

.contact-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(225, 170, 5, 0.3);
}

.contact-hero .hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.contact-hero .title-line-1,
.contact-hero .title-line-2 {
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero .title-line-2 {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-mustard);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(225, 170, 5, 0.3);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Information Section */
.contact-info-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.contact-info-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(225, 170, 5, 0.1);
    text-align: center;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.info-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: white;
    font-size: 2rem;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 25px rgba(225, 170, 5, 0.3);
}

.info-content h3 {
    color: var(--primary-brown);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.info-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-mustard);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-link:hover {
    color: var(--primary-brown);
    transform: translateX(5px);
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(225, 170, 5, 0.05) 0%, rgba(75, 56, 47, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.contact-info-card:hover .card-hover-effect {
    opacity: 1;
}

/* Contact Form Section */
.contact-form-section {
    padding: 6rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.form-map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-header {
    margin-bottom: 3rem;
}

.premium-contact-form {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(225, 170, 5, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-brown);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-mustard);
    background: white;
    box-shadow: 0 0 0 3px rgba(225, 170, 5, 0.1);
}

.form-control.premium {
    background: white;
    border-color: rgba(225, 170, 5, 0.2);
}

.form-control.premium:focus {
    border-color: var(--accent-mustard);
    box-shadow: 0 0 0 3px rgba(225, 170, 5, 0.1);
}

.form-options {
    margin: 2rem 0;
}

.premium-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.premium-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.premium-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-mustard);
    border-color: var(--accent-mustard);
}

.premium-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.label-text {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
}

.label-text a {
    color: var(--accent-mustard);
    text-decoration: none;
}

.label-text a:hover {
    text-decoration: underline;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.btn-premium-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    background: var(--gradient-accent);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(225, 170, 5, 0.4);
    cursor: pointer;
}

.btn-premium-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(225, 170, 5, 0.5);
    color: white;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-premium-primary:hover .btn-shine {
    left: 100%;
}

.form-messages {
    margin-top: 2rem;
    text-align: center;
}

.success-message,
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 500;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Map Section */
.contact-map-wrapper {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(225, 170, 5, 0.1);
    height: fit-content;
}

.map-header {
    margin-bottom: 2rem;
}

.map-header h3 {
    color: var(--primary-brown);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.map-header p {
    color: var(--text-light);
    line-height: 1.6;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.map-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.map-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.map-info-item i {
    color: var(--accent-mustard);
    font-size: 1rem;
}

/* Department Contacts */
.department-contacts {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.department-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(225, 170, 5, 0.1);
    text-align: center;
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.department-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: white;
    font-size: 2rem;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 25px rgba(225, 170, 5, 0.3);
}

.department-content h3 {
    color: var(--primary-brown);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.department-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.department-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--accent-mustard);
    font-size: 1rem;
    width: 16px;
}

.contact-item span {
    color: var(--text-light);
}

/* Social Media Section */
.contact-social {
    padding: 6rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(225, 170, 5, 0.1);
}

.social-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.social-link.facebook .social-icon {
    background: #1877f2;
}

.social-link.twitter .social-icon {
    background: #1da1f2;
}

.social-link.linkedin .social-icon {
    background: #0077b5;
}

.social-link.youtube .social-icon {
    background: #ff0000;
}

.social-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.social-name {
    color: var(--primary-brown);
    font-weight: 700;
    font-size: 1.1rem;
}

.social-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .form-map-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info-grid,
    .departments-grid,
    .social-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .premium-contact-form,
    .contact-map-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .contact-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .premium-contact-form,
    .contact-map-wrapper {
        padding: 1.5rem;
    }
    
    .contact-info-card,
    .department-card {
        padding: 2rem;
    }
}
