/**
 * MoodHeal Elementor Widgets Styles
 *
 * @package MoodHeal
 */

/* =====================================================
   Widget Base Styles
   ===================================================== */

/* Ensure proper box sizing */
.elementor-widget-moodheal * {
    box-sizing: border-box;
}

/* =====================================================
   Hero Slider Widget
   ===================================================== */
.mh-hero {
    position: relative;
    min-height: 900px;
    background-color: var(--mh-brand-emerald);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.mh-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

.mh-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--mh-brand-emerald), transparent, rgba(15, 31, 28, 0.5));
}

.mh-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

@media (min-width: 1024px) {
    .mh-hero-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mh-hero-text {
    max-width: 640px;
}

/* =====================================================
   Doctors Team Widget
   ===================================================== */
.mh-doctor-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.mh-doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.mh-doctor-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background-color: var(--mh-brand-light);
}

.mh-doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.7s ease;
}

.mh-doctor-card:hover .mh-doctor-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.mh-social-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 31, 28, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.mh-doctor-card:hover .mh-social-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   Service Cards
   ===================================================== */
.mh-service-card {
    position: relative;
    padding: 3rem;
    border-radius: 3rem;
    overflow: hidden;
    transition: all 0.5s ease;
}

.mh-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.mh-service-card .mh-icon-bg {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    font-size: 200px;
    opacity: 0.03;
    color: var(--mh-brand-emerald);
    transition: opacity 0.5s ease;
}

.mh-service-card:hover .mh-icon-bg {
    opacity: 0.08;
}

/* =====================================================
   Testimonials Widget
   ===================================================== */
.mh-testimonial-card {
    break-inside: avoid;
    margin-bottom: 2rem;
    padding: 3rem;
    border-radius: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.mh-testimonial-card:not(.featured):hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   Care Journey Widget
   ===================================================== */
.mh-journey-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mh-journey-icon {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    background: white;
    border: 8px solid var(--mh-background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    color: var(--mh-brand-emerald);
}

.mh-journey-step:hover .mh-journey-icon {
    background: var(--mh-brand-emerald);
    color: white;
}

/* =====================================================
   FAQ Accordion Widget
   ===================================================== */
.mh-faq-item {
    background: var(--mh-brand-light);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(15, 31, 28, 0.05);
}

.mh-faq-question {
    width: 100%;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: inherit;
}

.mh-faq-question .material-symbols-outlined {
    transition: transform 0.3s ease;
}

.mh-faq-item:hover .mh-faq-question,
.mh-faq-item.active .mh-faq-question {
    background: var(--mh-brand-emerald);
    color: white;
}

.mh-faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(15, 31, 28, 0.1);
    background: white;
}

.mh-faq-item.active .mh-faq-answer {
    max-height: 500px;
    padding-top: 0;
}

.mh-faq-item.active .mh-faq-question .material-symbols-outlined {
    transform: rotate(180deg);
}

/* =====================================================
   Contact Form Widget
   ===================================================== */
.mh-floating-group {
    position: relative;
}

.mh-floating-group input,
.mh-floating-group textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--mh-primary);
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.mh-floating-group input:focus,
.mh-floating-group textarea:focus {
    border-bottom-color: var(--mh-brand-emerald);
}

.mh-floating-label {
    position: absolute;
    top: 1.25rem;
    left: 0;
    font-weight: 500;
    color: #94A3B8;
    pointer-events: none;
    transition: all 0.15s ease;
}

.mh-floating-group input:focus~.mh-floating-label,
.mh-floating-group input:not(:placeholder-shown)~.mh-floating-label,
.mh-floating-group textarea:focus~.mh-floating-label,
.mh-floating-group textarea:not(:placeholder-shown)~.mh-floating-label {
    top: -0.5rem;
    left: 0;
    font-size: 0.75rem;
    background-color: white;
    padding: 0 0.25rem;
    color: var(--mh-brand-emerald);
    font-weight: 700;
}

/* =====================================================
   Gallery Masonry Widget
   ===================================================== */
.mh-masonry-item {
    border-radius: 2rem;
    overflow: hidden;
}

.mh-masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.mh-masonry-item:hover img {
    transform: scale(1.1);
}

/* =====================================================
   Page Hero Widget
   ===================================================== */
.mh-page-hero {
    position: relative;
    width: 100%;
    padding: 8rem 0 12rem;
    background-color: var(--mh-brand-emerald);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.mh-page-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.mh-page-hero-title {
    color: white;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.mh-page-hero-title .highlight {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
    font-weight: 500;
}

.mh-page-hero-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 672px;
    line-height: 1.75;
    font-weight: 300;
}

/* =====================================================
   Hero Badge
   ===================================================== */
.mh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.mh-hero-badge .pulse {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.mh-hero-badge span:last-child {
    font-size: 0.6875rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* =====================================================
   Responsive Adjustments
   ===================================================== */
@media (max-width: 1024px) {
    .mh-hero {
        min-height: auto;
        padding: 6rem 0;
    }

    .mh-hero-image {
        display: none;
    }

    .mh-page-hero {
        padding: 6rem 0 8rem;
    }
}

@media (max-width: 768px) {

    .mh-service-card,
    .mh-testimonial-card {
        padding: 2rem;
    }

    .mh-journey-icon {
        width: 100px;
        height: 100px;
    }

    .mh-faq-question {
        font-size: 1rem;
        padding: 1.5rem;
    }
}