﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #921860;
    --primary-dark: #4a253e;
    --primary-light: #7d4268;
    --secondary: #f59e0b;
    --accent: #d946ef;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-soft: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-subtle: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gradient-hero);
    font-size: 15px;
}

/* Contact Page Specific Styles */
.contact-container {
    padding: 2rem 0;
    min-height: 100vh;
}

/* Enhanced Header */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

    .contact-header::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(146, 24, 96, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        z-index: -1;
    }

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Cards */
.modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-bottom: 2rem;
}

    .modern-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.modern-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(146, 24, 96, 0.1);
    position: relative;
    overflow: hidden;
}

    .modern-card-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--gradient);
        opacity: 0.95;
        z-index: -1;
    }

    .modern-card-header.success::before {
        background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    }

    .modern-card-header.info::before {
        background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
    }

    .modern-card-header h5 {
        color: white;
        font-weight: 700;
        font-size: 1.1rem;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .modern-card-header i {
        font-size: 1.2rem;
    }

.modern-card-body {
    padding: 2rem;
}

/* Enhanced Form Styles */
.form-label {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(146, 24, 96, 0.1);
        outline: none;
        background: white;
    }

    .form-control::placeholder {
        color: var(--gray-400);
        font-weight: 400;
    }

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* Enhanced Button */
.btn-modern-primary {
    background: var(--gradient);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.02em;
}

    .btn-modern-primary:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: var(--shadow-lg);
        color: white;
    }

    .btn-modern-primary:active {
        transform: translateY(0) scale(0.98);
    }

    .btn-modern-primary i {
        font-size: 1.1rem;
    }

/* Alert Messages */
.alert-modern {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    font-weight: 500;
    box-shadow: var(--shadow-subtle);
    border-left: 4px solid;
}

    .alert-modern.alert-success {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
        color: #065f46;
        border-left-color: var(--success);
    }

    .alert-modern.alert-danger {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
        color: #991b1b;
        border-left-color: var(--danger);
    }

    .alert-modern i {
        margin-right: 0.5rem;
    }

/* Contact Info Styles */
.contact-info-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

    .contact-info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .contact-info-item h6 {
        font-weight: 700;
        color: var(--gray-900);
        margin-bottom: 0.75rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

        .contact-info-item h6 i {
            width: 20px;
            text-align: center;
            font-size: 1.1rem;
        }

    .contact-info-item a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .contact-info-item a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

    .contact-info-item .text-muted {
        font-size: 0.85rem;
        color: var(--gray-500);
        font-weight: 500;
    }

.working-hours {
    margin-bottom: 0.5rem;
}

    .working-hours strong {
        color: var(--gray-800);
        font-weight: 600;
    }

/* Enhanced Accordion */
.accordion-modern {
    border: none;
}

    .accordion-modern .accordion-item {
        border: 1px solid var(--gray-200);
        border-radius: var(--border-radius);
        margin-bottom: 0.75rem;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        overflow: hidden;
    }

    .accordion-modern .accordion-header {
        border: none;
    }

    .accordion-modern .accordion-button {
        background: rgba(255, 255, 255, 0.9);
        border: none;
        padding: 1.25rem 1.5rem;
        font-weight: 600;
        color: var(--gray-800);
        border-radius: var(--border-radius);
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }

        .accordion-modern .accordion-button:not(.collapsed) {
            background: var(--gradient);
            color: white;
            box-shadow: none;
        }

        .accordion-modern .accordion-button::after {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23475569'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
            transition: transform 0.3s ease;
        }

        .accordion-modern .accordion-button:not(.collapsed)::after {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        }

    .accordion-modern .accordion-body {
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        color: var(--gray-700);
        line-height: 1.6;
        font-size: 0.9rem;
    }

/* Map Container */
.map-container {
    height: 350px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .map-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23cbd5e1' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
        opacity: 0.5;
    }

.map-placeholder {
    text-align: center;
    z-index: 1;
    position: relative;
}

    .map-placeholder i {
        color: var(--gray-400);
        margin-bottom: 1rem;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    }

    .map-placeholder p {
        color: var(--gray-600);
        font-weight: 500;
        margin: 0;
        line-height: 1.5;
    }

/* Validation Styles */
.text-danger {
    color: var(--danger) !important;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.field-validation-error {
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: block;
}

.input-validation-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .contact-container {
        padding: 1.5rem 0;
    }

    .contact-header {
        margin-bottom: 2rem;
    }

    .contact-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .contact-subtitle {
        font-size: 1.1rem;
    }

    .modern-card-body {
        padding: 1.5rem;
    }

    .modern-card-header {
        padding: 1.25rem;
    }

    .contact-info-item {
        padding: 1.25rem 0;
    }
}

@media (max-width: 768px) {
    .modern-card-body {
        padding: 1.25rem;
    }

    .modern-card-header {
        padding: 1rem;
    }

    .btn-modern-primary {
        width: 100%;
        justify-content: center;
        padding: 1.1rem 1.5rem;
    }

    .contact-info-item {
        padding: 1rem 0;
    }

    .form-control,
    .form-select {
        padding: 0.8rem 1rem;
    }

    .map-container {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 1rem 0;
    }

    .modern-card {
        margin-bottom: 1.5rem;
    }

    .modern-card-body {
        padding: 1rem;
    }

    .modern-card-header {
        padding: 0.875rem;
    }

    .contact-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .contact-subtitle {
        font-size: 1rem;
    }

    .map-container {
        height: 250px;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-card {
    animation: fadeInUp 0.6s ease-out;
}

    .modern-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .modern-card:nth-child(3) {
        animation-delay: 0.2s;
    }

/* Loading State */
.form-loading {
    pointer-events: none;
    opacity: 0.7;
}

    .form-loading .btn-modern-primary {
        background: var(--gray-400);
        transform: none;
        box-shadow: none;
    }

/* Focus States for Accessibility */
.modern-card:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.accordion-modern .accordion-button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .modern-card {
        border: 2px solid var(--gray-800);
    }

    .form-control,
    .form-select {
        border: 2px solid var(--gray-800);
    }

    .btn-modern-primary {
        border: 2px solid var(--primary-dark);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
