/* ==========================================================================
   Contact Page Template Stylesheet
   Formula Premium — Modernized Design
   ========================================================================== */

:root {
    --contact-glow: rgba(123, 64, 192, 0.15);
    --contact-border: rgba(226, 232, 240, 0.8);
    --contact-bg-glass: rgba(255, 255, 255, 0.75);
}

.contact-section-wrap {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative Background Elements */
.contact-section-wrap::before,
.contact-section-wrap::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.contact-section-wrap::before {
    background: rgba(123, 64, 192, 0.15);
    top: 10%;
    left: -5%;
}

.contact-section-wrap::after {
    background: rgba(59, 130, 246, 0.15);
    bottom: 10%;
    right: -5%;
}

.contact-section-wrap .container {
    position: relative;
    z-index: 1;
}

/* Section Header */
.contact-intro {
    text-align: center;
    margin: 0 auto 50px auto;
}

.contact-intro .section-subtitle {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--thm-primary);
    font-weight: 700;
    margin-bottom: 12px;
    padding: 4px 12px;
    background-color: rgba(123, 64, 192, 0.08);
    border-radius: 30px;
}

.contact-intro .section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--thm-black, #0f172a);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.contact-intro .divider-line {
    width: 60px;
    height: 4px;
    background: var(--thm-primary);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

/* Glassmorphism Contact Cards */
.contact-glass-card {
    background: var(--contact-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--contact-border);
    border-radius: var(--thm-card-radius, 20px);
    padding: 40px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.contact-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(123, 64, 192, 0.08), 0 1px 5px rgba(0, 0, 0, 0.02);
}

/* Form Section Styling */
.contact-form-section-wrap h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--thm-black, #0f172a);
    margin-bottom: 24px;
}

/* Custom styling for embedded shortcodes/forms */
.contact-form-section .wpcf7-form-control-wrap,
.contact-form-section .form-group {
    margin-bottom: 20px;
    display: block;
}

.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section input[type="tel"],
.contact-form-section input[type="url"],
.contact-form-section textarea,
.contact-form-section select {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--thm-input-radius, 10px);
    border: 1px solid #cbd5e1;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    color: #334155;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01);
}

.contact-form-section input:focus,
.contact-form-section textarea:focus,
.contact-form-section select:focus {
    outline: none;
    border-color: var(--thm-primary);
    box-shadow: 0 0 0 4px var(--contact-glow);
    background-color: #ffffff;
}

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

.contact-form-section input[type="submit"],
.contact-form-section button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--thm-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--thm-btn-radius, 10px);
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(123, 64, 192, 0.2);
}

.contact-form-section input[type="submit"]:hover,
.contact-form-section button[type="submit"]:hover {
    background-color: var(--thm-black, #020617);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Info Cards Sidebar */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--thm-card-radius, 16px);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.contact-info-item:hover {
    border-color: var(--thm-primary);
    box-shadow: 0 8px 20px rgba(123, 64, 192, 0.05);
    transform: translateX(4px);
}

.contact-info-icon-badge {
    width: 48px;
    height: 48px;
    background-color: rgba(123, 64, 192, 0.08);
    border-radius: var(--thm-badge-radius, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon-badge {
    background-color: var(--thm-primary);
}

.contact-info-icon-badge i {
    font-size: 18px;
    color: var(--thm-primary);
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon-badge i {
    color: #ffffff;
}

.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-info-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--thm-black, #0f172a);
    margin-bottom: 6px;
}

.contact-info-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.contact-info-content a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-content a:hover {
    color: var(--thm-primary);
}

/* Map Card */
.contact-map-row,
.contact-map-section,
.contact-map-section-wrap {
    margin-top: 30px;
}

.contact-map-card-wrap {
    border-radius: var(--thm-card-radius, 16px);
    overflow: hidden;
    border: 1px solid var(--contact-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.contact-map-card-wrap iframe {
    width: 100%;
    height: 320px;
    display: block;
    border: 0;
}

.contact-map-title-wrap {
    margin-bottom: 20px;
}

.contact-map-title-wrap .map-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .contact-glass-card {
        padding: 30px 20px;
    }

    .contact-form-section-wrap,
    .contact-cards-row > [class*="col-"]:first-child {
        margin-bottom: 30px;
    }

    .contact-intro .section-title {
        font-size: 30px;
    }

    .contact-info-list {
        margin-top: 30px;
    }
}

/* Dark Mode overrides */
.theme-dark .contact-section-wrap {
    background: var(--thm-black);
}

.theme-dark .contact-glass-card {
    background: var(--thm-gray-rgb);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .contact-glass-card:hover {
    box-shadow: 0 20px 40px -15px rgba(123, 64, 192, 0.15);
}

.theme-dark .contact-intro .section-title,
.theme-dark .contact-form-section-wrap h2,
.theme-dark .contact-info-title,
.theme-dark .contact-map-title-wrap .map-title {
    color: var(--thm-light);
}

.theme-dark .contact-info-item {
    background: var(--thm-black-rgb);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .contact-info-text {
    color: #cbd5e1;
}

.theme-dark .contact-form-section input[type="text"],
.theme-dark .contact-form-section input[type="email"],
.theme-dark .contact-form-section input[type="tel"],
.theme-dark .contact-form-section textarea {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
}

.theme-dark .contact-form-section input:focus,
.theme-dark .contact-form-section textarea:focus {
    background-color: rgba(15, 23, 42, 1);
    border-color: var(--thm-primary);
}

/* Social Connect section */
.contact-social-connect {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.social-connect-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
}

.social-connect-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-icon-btn:hover {
    transform: translateY(-3px);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.social-icon-btn.facebook:hover {
    background-color: #1877f2;
}

.social-icon-btn.twitter:hover {
    background-color: #1da1f2;
}

.social-icon-btn.linkedin:hover {
    background-color: #0a66c2;
}

.social-icon-btn.youtube:hover {
    background-color: #ff0000;
}

.social-icon-btn.instagram:hover {
    background-color: #e1306c;
}

.social-icon-btn.telegram:hover {
    background-color: #0088cc;
}

/* Support badge/card */
.contact-support-badge {
    margin-top: 35px;
    background: linear-gradient(135deg, rgba(123, 64, 192, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px dashed rgba(123, 64, 192, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.support-badge-icon {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--thm-primary);
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(123, 64, 192, 0.08);
    flex-shrink: 0;
}

.support-badge-content {
    display: flex;
    flex-direction: column;
}

.support-badge-content .badge-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--thm-primary);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.support-badge-content .badge-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.support-badge-content .badge-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.support-badge-content .btn-badge-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--thm-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.support-badge-content .btn-badge-link i {
    transition: transform 0.2s ease;
}

.support-badge-content .btn-badge-link:hover i {
    transform: translateX(3px);
}

/* Dark mode support */
.theme-dark .contact-social-connect {
    border-top-color: rgba(51, 65, 85, 0.4);
}

.theme-dark .social-connect-title,
.theme-dark .support-badge-content .badge-title {
    color: #f8fafc;
}

.theme-dark .social-icon-btn {
    background-color: rgba(30, 41, 59, 0.6);
    color: #94a3b8;
}

.theme-dark .support-badge-icon {
    background-color: rgba(15, 23, 42, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-dark .support-badge-content .badge-text {
    color: #94a3b8;
}

/* Dynamic Working Hours Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-top: 8px;
    height: 4vh;
    width: fit-content;
}

.status-badge.status-open {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.status-badge.status-closed {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    background-color: currentColor;
    display: inline-block;
    animation: status-pulse 1.8s infinite ease-in-out;
}

@keyframes status-pulse {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

/* Contact CTA Banner Section */
.contact-cta-section {
    padding: 80px 0;
    background-color: #f8fafc;
    position: relative;
    z-index: 1;
}

.contact-cta-banner {
    background: linear-gradient(135deg, var(--thm-primary) 0%, #3b82f6 100%);
    border-radius: var(--thm-card-radius, 24px);
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(123, 64, 192, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.contact-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.contact-cta-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.contact-cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.contact-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: var(--thm-primary);
    padding: 16px 36px;
    border-radius: var(--thm-btn-radius, 12px);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.contact-cta-btn:hover {
    background-color: var(--thm-black, #020617);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contact-cta-btn i {
    transition: transform 0.2s ease;
}

.contact-cta-btn:hover i {
    transform: translateX(3px);
}

/* Dark Mode overrides */
.theme-dark .contact-cta-section {
    background-color: #090d16;
}

.theme-dark .contact-cta-banner {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Status Badge Inline Header Placement */
.contact-info-title {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-info-title .status-badge {
    margin-top: 0;
    margin-left: 10px;
    font-size: 10px;
    padding: 2px 8px;
    height: auto;
    width: auto;
    vertical-align: middle;
}