/**
 * Theme Name: Minds Care Hub
 * Author: Luka Trailovic
 * Version: 1.1.0
 * Text Domain: mindscarehub
 * Domain Path: /languages
 * Requires at least: 6.0
 * Requires PHP: 8.0
 */


html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}

.testimonial-slide:hover {
    will-change: transform;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
}

@font-face {
    font-display: swap;
}

.hero-section {
    contain: layout style paint;
}

.testimonial-slider-container {
    contain: layout style paint;
}

button {
    touch-action: manipulation;
}

input, select, textarea {
    touch-action: manipulation;
}

a {
    touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
    text-decoration: none;
    color: white;
    background: #000;
    padding: 8px 16px;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

 .modern-form {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.form-input, .form-select, .form-textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.border-red-500, .form-select.border-red-500, .form-textarea.border-red-500 {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
}

.progress-point {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.progress-point.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    transform: scale(1.1);
}

.progress-bar-bg {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 2px;
    transition: width 0.7s ease;
}

.step-title {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 2px;
}

.form-label {
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
}

.required-asterisk {
    color: #ef4444;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-step {
    animation: fadeIn 0.5s ease;
}

.modern-form {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.form-input, .form-select, .form-textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.border-red-500, .form-select.border-red-500, .form-textarea.border-red-500 {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.progress-bar-bg {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 2px;
    transition: width 0.7s ease;
}

.step-title {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.progress-point {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.progress-point.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.form-label {
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.required-asterisk {
    color: #ef4444;
}

.modal-step {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.therapist-card {
    animation: fadeIn 0.6s ease-out;
}

.filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    transform: translateY(-2px);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

select::-webkit-scrollbar {
    width: 8px;
}

select::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

select::-webkit-scrollbar-thumb {
    background: #244565;
    border-radius: 4px;
}

select::-webkit-scrollbar-thumb:hover {
    background: #5d7f94;
}

.therapist-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

.therapist-card:hover .therapist-card img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .therapist-card {
        margin-bottom: 1rem;
    }

    .filter-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .filter-tab {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-slider-container {
    width: 100%;
    position: relative;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.testimonial-slider {
    display: flex;
    animation: slide 30s linear infinite;
    width: fit-content;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.testimonial-slide {
    flex: 0 0 90%;
    padding: 0 0.5rem;
    scroll-snap-align: start;
    display: flex;
}

.testimonial-slide > div {
    width: 100%;
    height: 100%;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 480px) {
    .testimonial-slide {
        flex: 0 0 30%;
        padding: 0 0.5rem;
        scroll-snap-align: start;
    }
}

@media (min-width: 480px) {
    .testimonial-slide {
        flex: 0 0 85%;
        padding: 0 0.75rem;
    }
}

@media (min-width: 640px) {
    .testimonial-slide {
        flex: 0 0 50%;
        padding: 0 1rem;
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        flex: 0 0 33.333%;
    }
}

.testimonial-slider:hover,
.testimonial-slider:active {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-slider {
        animation: none;
    }
}

.steps-slider-container {
    width: 100%;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.steps-slider-container::-webkit-scrollbar { display: none; }

.steps-slider {
    display: flex;
    width: max-content;
}

.step-slide {
    flex: 0 0 100vw;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.step-slide > div {
    width: 100%;
}

.step-dot {
    cursor: pointer;
    border: none;
    outline: none;
}

.step-dot.active {
    background-color: #244565 !important;
}

.step-dot:not(.active) {
    background-color: #d1d5db;
}

.step-dot:hover:not(.active) {
    background-color: #9ca3af;
}

.therapists-slider-container {
    width: 100%;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.therapists-slider-container::-webkit-scrollbar { display: none; }

.therapists-slider {
    display: flex;
    width: max-content;
}

.therapist-slide {
    flex: 0 0 100vw;
    max-width: 100vw;
    display: flex;
    align-items: stretch;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 0 1rem;
}

.therapist-slide > div {
    width: 100%;
    max-width: 350px;
}

.therapist-dot {
    cursor: pointer;
    border: none;
    outline: none;
}

.therapist-dot.active {
    background-color: #244565 !important;
}

.therapist-dot:not(.active) {
    background-color: #d1d5db;
}

.therapist-dot:hover:not(.active) {
    background-color: #9ca3af;
}

[id^="question"] svg {
    transition: transform 0.3s ease-in-out;
}

[id^="answer"] {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.open {
    max-height: 200px;
    transition: max-height 0.3s ease-in;
}

