/* Contact Page Styles */

/* Hero Section */
.contact-hero {
    background: linear-gradient(90deg, 
        #2c5282 0%, 
        #2b77a4 50%,
        #4299e1 100%);
    padding: 100px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    border-radius: 0;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.35rem;
    color: white;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

/* Light theme specific hero styles */
[data-theme="light"] .contact-hero,
:root:not([data-theme]) .contact-hero {
    background: linear-gradient(90deg, 
        #2c5282 0%, 
        #2b77a4 50%,
        #4299e1 100%);
    color: white;
    border-radius: 0;
}

[data-theme="light"] .hero-content h1,
:root:not([data-theme]) .hero-content h1 {
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="light"] .hero-content p,
:root:not([data-theme]) .hero-content p {
    color: white;
    opacity: 0.95;
}

/* Dark theme hero styles */
[data-theme="dark"] .contact-hero {
    background: linear-gradient(90deg, 
        #1a365d 0%, 
        #2c5282 50%,
        #2b6cb0 100%);
    color: white;
    border-radius: 0;
}

[data-theme="dark"] .hero-content h1 {
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

[data-theme="dark"] .hero-content p {
    color: white;
    opacity: 0.9;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Cards */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: translateX(0);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-card h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Contact Methods */
.contact-method {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.3s ease;
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-method:hover {
    background-color: var(--hover-bg);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 8px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    color: white;
    font-size: 1.2rem;
}

.contact-details h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.5;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Business Hours */
.business-hours {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.hour-row:last-child {
    border-bottom: none;
}

.day {
    color: var(--text-secondary);
    font-weight: 500;
}

.time {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.time.closed {
    color: var(--error-color);
}

/* Company Details */
.company-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.95rem;
}

.detail-row .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-row .value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    flex: 1;
    margin-left: 20px;
}

/* Registered Office */
.registered-office .company-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.registered-office .address {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Map Section */
.map-section {
    background: var(--section-bg);
    padding: 80px 0;
}

.map-intro {
    text-align: center;
    margin-bottom: 50px;
}

.map-intro h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.map-intro p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* Location Details */
.location-details {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 30px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.location-info h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.location-info .address {
    color: var(--text-secondary);
    line-height: 1.6;
}

.location-info .company-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Transport Info */
.transport-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transport-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: var(--text-secondary);
}

.transport-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.transport-icon.bus {
    color: var(--success-color);
}

.transport-icon.plane {
    color: var(--accent-color);
}

.transport-icon.train {
    color: var(--warning-color);
}

/* Contact Form Card */
.contact-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 800px;
}

.form-intro {
    text-align: center;
    margin-bottom: 30px;
}

.form-intro h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 0 60px;
        min-height: 250px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }
    
    .hero-content p {
        font-size: 1.15rem;
        line-height: 1.4;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
        padding: 0 15px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-row .value {
        text-align: left;
        margin-left: 0;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .map-intro h2 {
        font-size: 2rem;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 60px 0 50px;
        min-height: 200px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 14px;
        line-height: 1.15;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-content p br {
        display: none;
    }
    
    .contact-card {
        padding: 15px;
    }
    
    .hour-row,
    .detail-row {
        font-size: 0.9rem;
    }
    
    .map-section {
        padding: 60px 0;
    }
}

/* Dark mode specific adjustments */
[data-theme="dark"] .contact-hero {
    background: linear-gradient(135deg, 
        var(--primary-dark) 0%, 
        #1a1a2e 100%);
}

[data-theme="dark"] .transport-item {
    color: var(--text-secondary);
}

[data-theme="dark"] .contact-method:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Animation for contact cards */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card {
    animation: slideInUp 0.6s ease forwards;
}

.contact-card:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.2s;
}

.contact-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Hover effects for interactive elements */
.contact-details a,
.transport-item {
    transition: all 0.3s ease;
}

.transport-item:hover {
    transform: translateX(5px);
    color: var(--text-primary);
}

/* Focus states for accessibility */
.contact-details a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}