/**
 * Andrefarm Clinic - Unified Styles
 * Version 1.0.1 - Combined Form + Doctors Display
 * Added image fallback styles for broken photos/icons
 */

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    /* Primary Colors */
    --andrefarm-primary: #DC2626;
    --andrefarm-primary-dark: #B91C1C;
    --andrefarm-primary-light: rgba(220, 38, 38, 0.08);
    --andrefarm-accent: #de3533;
    --andrefarm-accent-hover: #c42f2d;
    --andrefarm-accent-light: rgba(222, 53, 51, 0.08);

    /* Text Colors */
    --andrefarm-text: #1F2937;
    --andrefarm-text-secondary: #4B5563;
    --andrefarm-text-tertiary: #6B7280;
    --andrefarm-text-muted: #9CA3AF;

    /* Background Colors */
    --andrefarm-bg: #FFFFFF;
    --andrefarm-bg-secondary: #F9FAFB;
    --andrefarm-bg-tertiary: #F3F4F6;

    /* Border Colors */
    --andrefarm-border: #E5E7EB;
    --andrefarm-border-light: #F3F4F6;

    /* Status Colors */
    --andrefarm-success: #10B981;
    --andrefarm-success-light: rgba(16, 185, 129, 0.1);
    --andrefarm-warning: #F59E0B;
    --andrefarm-warning-light: rgba(245, 158, 11, 0.1);
    --andrefarm-whatsapp: #25D366;

    /* Spacing & Radius */
    --andrefarm-radius: 12px;
    --andrefarm-radius-lg: 16px;
    --andrefarm-radius-sm: 8px;

    /* Shadows */
    --andrefarm-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --andrefarm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --andrefarm-shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --andrefarm-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   COMMON COMPONENTS
   ============================================ */

/* Buttons */
.andrefarm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--andrefarm-radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--andrefarm-transition);
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.2;
}

.andrefarm-btn-primary {
    background: linear-gradient(135deg, var(--andrefarm-primary), var(--andrefarm-primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.andrefarm-btn-primary:hover {
    background: linear-gradient(135deg, var(--andrefarm-primary-dark), #991B1B);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
    color: white;
}

.andrefarm-btn-outline {
    background: transparent;
    color: var(--andrefarm-text);
    border: 1px solid var(--andrefarm-border);
}

.andrefarm-btn-outline:hover {
    background: var(--andrefarm-bg-secondary);
    border-color: var(--andrefarm-text-tertiary);
    color: var(--andrefarm-text);
}

.andrefarm-btn-secondary {
    background: var(--andrefarm-bg-secondary);
    color: var(--andrefarm-text);
    border: 2px solid var(--andrefarm-border);
}

.andrefarm-btn-secondary:hover {
    background: var(--andrefarm-bg-tertiary);
    border-color: #D1D5DB;
}

.andrefarm-btn-whatsapp {
    background: var(--andrefarm-whatsapp);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.andrefarm-btn-whatsapp:hover {
    background: #20BD5A;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.andrefarm-btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

.andrefarm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Specialty Tags */
.andrefarm-specialty-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    background: color-mix(in srgb, var(--specialty-color, #6B7280) 15%, white);
    color: var(--specialty-color, #6B7280);
}

.andrefarm-specialty-tag-large {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Loading State */
.andrefarm-loading {
    text-align: center;
    padding: 2rem;
    color: var(--andrefarm-text-tertiary);
}

.andrefarm-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    border: 2px solid var(--andrefarm-border);
    border-top-color: var(--andrefarm-primary);
    border-radius: 50%;
    animation: andrefarm-spin 0.8s linear infinite;
}

@keyframes andrefarm-spin {
    to { transform: rotate(360deg); }
}

/* Empty & Error States */
.andrefarm-empty,
.andrefarm-error {
    text-align: center;
    padding: 3rem;
    background: var(--andrefarm-bg-secondary);
    border-radius: var(--andrefarm-radius);
    color: var(--andrefarm-text-tertiary);
}

.andrefarm-error {
    background: #FEF2F2;
    color: #DC2626;
}

/* ============================================
   DOCTORS GRID
   ============================================ */

.andrefarm-doctors-grid {
    display: grid;
    gap: 1.5rem;
    padding: 1rem 0;
}

.andrefarm-doctors-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.andrefarm-doctors-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.andrefarm-doctors-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .andrefarm-doctors-grid[data-columns="3"],
    .andrefarm-doctors-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .andrefarm-doctors-grid[data-columns="2"],
    .andrefarm-doctors-grid[data-columns="3"],
    .andrefarm-doctors-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Compact doctor cards on mobile */
    .andrefarm-doctor-card {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .andrefarm-doctor-photo-link {
        max-width: 80px;
    }

    .andrefarm-doctor-name {
        font-size: 0.85rem;
    }

    .andrefarm-doctor-title {
        font-size: 0.7rem;
    }

    .andrefarm-doctor-specialties {
        display: none;
    }

    .andrefarm-doctor-bio {
        display: none;
    }

    /* Keep schedule visible on mobile but compact */
    .andrefarm-doctor-schedule-preview {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    .andrefarm-doctor-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .andrefarm-doctor-actions .andrefarm-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    /* Schedule items stacked on mobile */
    .andrefarm-doctor-schedule-preview {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }
}

/* ============================================
   SINGLE DOCTOR CARD (standalone shortcode)
   ============================================ */

/* When doctor card is used standalone (not in grid) */
.andrefarm-doctor-card--standalone {
    max-width: 400px;
}

.andrefarm-doctor-card--standalone .andrefarm-doctor-actions {
    flex-direction: column;
    gap: 0.75rem;
}

.andrefarm-doctor-card--standalone .andrefarm-btn-outline {
    display: none;
}

.andrefarm-doctor-card--standalone .andrefarm-btn-primary {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ============================================
   DOCTOR CARD
   ============================================ */

.andrefarm-doctor-card {
    background: #f0f7f9;
    border-radius: var(--andrefarm-radius);
    border: 1px solid var(--andrefarm-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--andrefarm-transition);
}

.andrefarm-doctor-card:hover {
    box-shadow: var(--andrefarm-shadow-lg);
    transform: translateY(-2px);
    border-color: transparent;
}

/* Doctor Photo Link */
.andrefarm-doctor-photo-link {
    display: block;
    text-decoration: none;
    margin: 0 auto;
    width: 100%;
    max-width: 150px;
    transition: var(--andrefarm-transition);
}

.andrefarm-doctor-photo-link:hover {
    transform: scale(1.05);
}

/* Doctor Photo */
.andrefarm-doctor-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--andrefarm-bg-secondary);
}

.andrefarm-doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.andrefarm-doctor-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--andrefarm-primary);
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
}

.andrefarm-doctor-initials-large {
    font-size: 4rem;
}

/* Doctor Info */
.andrefarm-doctor-info {
    text-align: center;
    flex: 1;
}

.andrefarm-doctor-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--andrefarm-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.andrefarm-doctor-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--andrefarm-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.andrefarm-doctor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.andrefarm-doctor-bio {
    font-size: 0.875rem;
    color: var(--andrefarm-text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Doctor Schedule Preview */
.andrefarm-doctor-schedule-preview {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--andrefarm-text-tertiary);
}

.andrefarm-schedule-item {
    display: block;
}

/* Doctor Actions */
.andrefarm-doctor-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.andrefarm-doctor-actions .andrefarm-btn {
    flex: 1;
}

/* ============================================
   SINGLE DOCTOR CARD (Shortcode)
   ============================================ */

.andrefarm-single-doctor-card {
    max-width: 400px;
}

/* ============================================
   DOCTOR PROFILE PAGE
   ============================================ */

.andrefarm-doctor-profile {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.andrefarm-doctor-profile-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--andrefarm-border-light);
}

@media (max-width: 768px) {
    .andrefarm-doctor-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.andrefarm-doctor-profile-photo {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--andrefarm-bg-secondary);
    box-shadow: var(--andrefarm-shadow);
}

.andrefarm-doctor-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.andrefarm-doctor-profile-info {
    flex: 1;
}

.andrefarm-doctor-profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--andrefarm-text);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.andrefarm-doctor-profile-name .andrefarm-doctor-title {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.andrefarm-doctor-profile-info .andrefarm-doctor-specialties {
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .andrefarm-doctor-profile-info .andrefarm-doctor-specialties {
        justify-content: center;
    }
}

.andrefarm-doctor-profile-cta {
    margin-top: 1.5rem;
}

/* Profile Sections */
.andrefarm-doctor-profile-section {
    margin-bottom: 2rem;
}

.andrefarm-doctor-profile-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--andrefarm-text);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--andrefarm-primary);
    display: inline-block;
}

.andrefarm-doctor-bio-full,
.andrefarm-doctor-qualifications {
    font-size: 1rem;
    color: var(--andrefarm-text-secondary);
    line-height: 1.7;
}

/* Doctor Bio Shortcode Content */
.andrefarm-doctor-bio-content {
    font-size: 1rem;
    color: var(--andrefarm-text-secondary);
    line-height: 1.8;
}

/* Schedule */
.andrefarm-doctor-schedule {
    display: grid;
    gap: 0.5rem;
}

.andrefarm-schedule-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--andrefarm-bg-secondary);
    border-radius: var(--andrefarm-radius-sm);
}

.andrefarm-schedule-day-name {
    font-weight: 600;
    color: var(--andrefarm-text);
}

.andrefarm-schedule-time {
    font-weight: 500;
    color: var(--andrefarm-primary);
}

/* Contact */
.andrefarm-doctor-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.andrefarm-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--andrefarm-bg-secondary);
    border-radius: var(--andrefarm-radius-sm);
    color: var(--andrefarm-text);
    text-decoration: none;
    transition: var(--andrefarm-transition);
}

.andrefarm-contact-item:hover {
    background: var(--andrefarm-border);
    color: var(--andrefarm-text);
}

.andrefarm-contact-item svg {
    color: var(--andrefarm-primary);
}

/* Profile Footer */
.andrefarm-doctor-profile-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--andrefarm-border-light);
}

/* ============================================
   SPECIALTIES GRID
   ============================================ */

.andrefarm-specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.andrefarm-specialties-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================
   SPECIALTY CARD
   ============================================ */

.andrefarm-specialty-card {
    background: var(--andrefarm-bg);
    border-radius: var(--andrefarm-radius);
    border: 1px solid var(--andrefarm-border);
    padding: 1.5rem;
    transition: var(--andrefarm-transition);
    position: relative;
    overflow: hidden;
}

.andrefarm-specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--specialty-color, #6B7280);
}

.andrefarm-specialty-card:hover {
    box-shadow: var(--andrefarm-shadow);
    transform: translateY(-2px);
}

.andrefarm-specialty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--specialty-color, #6B7280) 15%, white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.andrefarm-specialty-icon svg {
    color: var(--specialty-color, #6B7280);
    width: 28px;
    height: 28px;
}

.andrefarm-specialty-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.andrefarm-specialty-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--andrefarm-text);
    margin: 0 0 0.5rem 0;
}

.andrefarm-specialty-desc {
    font-size: 0.875rem;
    color: var(--andrefarm-text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.andrefarm-specialty-doctors-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--andrefarm-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.andrefarm-specialty-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.andrefarm-specialty-actions .andrefarm-btn {
    flex: 1;
}

/* Single Specialty Card */
.andrefarm-single-specialty-card {
    max-width: 400px;
}

/* ============================================
   FORM CONTAINER
   ============================================ */

.andrefarm-form-container {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--andrefarm-bg);
    border-radius: var(--andrefarm-radius-lg);
    box-shadow: var(--andrefarm-shadow-lg);
    position: relative;
    overflow: hidden;
}

.andrefarm-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--andrefarm-accent) 0%, #ff6b6b 100%);
}

.andrefarm-form-container * {
    box-sizing: border-box;
}

/* Form Header */
.andrefarm-form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 0.5rem;
}

.andrefarm-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--andrefarm-text);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.andrefarm-form-subtitle {
    font-size: 1rem;
    color: var(--andrefarm-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   PROGRESS STEPS
   ============================================ */

.andrefarm-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    position: relative;
}

.andrefarm-steps::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--andrefarm-border);
    z-index: 0;
}

.andrefarm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.andrefarm-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--andrefarm-bg);
    border: 2px solid var(--andrefarm-border);
    color: var(--andrefarm-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--andrefarm-transition);
}

.andrefarm-step.active .andrefarm-step-number {
    background: var(--andrefarm-accent);
    border-color: var(--andrefarm-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(222, 53, 51, 0.35);
}

.andrefarm-step.completed .andrefarm-step-number {
    background: var(--andrefarm-success);
    border-color: var(--andrefarm-success);
    color: white;
}

.andrefarm-step.completed .andrefarm-step-number::after {
    content: '\2713';
    font-size: 0.75rem;
}

.andrefarm-step.completed .andrefarm-step-number span {
    display: none;
}

.andrefarm-step-label {
    font-size: 0.75rem;
    color: var(--andrefarm-text-muted);
    text-align: center;
    font-weight: 500;
    transition: var(--andrefarm-transition);
}

.andrefarm-step.active .andrefarm-step-label {
    color: var(--andrefarm-text);
    font-weight: 600;
}

.andrefarm-step.completed .andrefarm-step-label {
    color: var(--andrefarm-success);
}

/* Step Title */
.andrefarm-step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--andrefarm-text);
    margin: 0 0 1.5rem;
}

.andrefarm-step-hint {
    font-size: 0.875rem;
    color: var(--andrefarm-text-muted);
    margin: -1rem 0 1rem;
    font-weight: 400;
}

/* ============================================
   FORM SPECIALTIES GRID (Step 1)
   ============================================ */

.andrefarm-form-specialties-grid,
.andrefarm-specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
}

@media (max-width: 768px) {
    .andrefarm-form-specialties-grid,
    .andrefarm-specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.andrefarm-form-specialty-card {
    position: relative;
    padding: 1.5rem 1rem 1.25rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Subtle inner glow effect */
.andrefarm-form-specialty-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255,255,255,0.8) 0%, transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.andrefarm-form-specialty-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.andrefarm-form-specialty-card:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.andrefarm-form-specialty-card.selected {
    background: linear-gradient(145deg, rgba(222, 53, 51, 0.04) 0%, rgba(222, 53, 51, 0.08) 100%);
    border-color: var(--andrefarm-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(222, 53, 51, 0.12), 0 2px 8px rgba(222, 53, 51, 0.06);
}

.andrefarm-form-specialty-card.selected::after {
    background: linear-gradient(145deg, rgba(222, 53, 51, 0.2) 0%, transparent 50%);
    opacity: 0.8;
}

.andrefarm-form-specialty-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 auto 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.andrefarm-form-specialty-card:hover .andrefarm-form-specialty-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Custom uploaded icon image */
.andrefarm-specialty-custom-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make PNG white for contrast */
}

/* Fallback if image fails to load */
.andrefarm-specialty-custom-icon[src=""],
.andrefarm-specialty-custom-icon:not([src]) {
    display: none;
}

/* Show emoji when image fails */
.andrefarm-form-specialty-icon:has(.andrefarm-specialty-custom-icon[src=""])::after,
.andrefarm-form-specialty-icon:has(.andrefarm-specialty-custom-icon:not([src]))::after {
    content: '🏥';
    font-size: 1.5rem;
}

.andrefarm-form-specialty-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--andrefarm-text);
    line-height: 1.35;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.andrefarm-form-specialty-card:hover .andrefarm-form-specialty-name {
    color: var(--andrefarm-text);
}

.andrefarm-form-specialty-card.selected .andrefarm-form-specialty-name {
    color: var(--andrefarm-accent);
    font-weight: 700;
}

/* Remove selection button - hidden by default */
.andrefarm-remove-selection {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--andrefarm-accent);
    color: white;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--andrefarm-transition);
}

.andrefarm-remove-selection:hover {
    background: #c02b29;
    transform: scale(1.1);
}

/* Only show X when card is selected */
.andrefarm-form-specialty-card.selected .andrefarm-remove-selection {
    display: block;
}

/* ============================================
   FORM DOCTORS SELECTION (Step 2)
   ============================================ */

/* Doctors grid inside the form - exactly 2 columns */
.andrefarm-doctor-recommendation .andrefarm-doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .andrefarm-doctor-recommendation .andrefarm-doctors-grid {
        grid-template-columns: 1fr;
    }
}

.andrefarm-form-doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .andrefarm-form-doctors-grid {
        grid-template-columns: 1fr;
    }
}

.andrefarm-form-doctor-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem 1rem;
    background: var(--andrefarm-bg);
    border: 2px solid var(--andrefarm-border);
    border-radius: var(--andrefarm-radius);
    cursor: pointer;
    transition: var(--andrefarm-transition);
    position: relative;
    min-height: 180px;
}

.andrefarm-form-doctor-card:hover {
    border-color: var(--andrefarm-accent);
    transform: translateY(-2px);
    box-shadow: var(--andrefarm-shadow);
}

.andrefarm-form-doctor-card.selected {
    border-color: var(--andrefarm-accent);
    background: linear-gradient(135deg, rgba(222, 53, 51, 0.03) 0%, rgba(222, 53, 51, 0.08) 100%);
    box-shadow: 0 4px 20px rgba(222, 53, 51, 0.15);
}

.andrefarm-form-doctor-card.preselected {
    border-color: var(--andrefarm-success);
    background: var(--andrefarm-success-light);
}

.andrefarm-form-doctor-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--andrefarm-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0 auto 0.75rem;
    border: 3px solid var(--andrefarm-border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--andrefarm-transition);
}

.andrefarm-form-doctor-card:hover .andrefarm-form-doctor-photo,
.andrefarm-form-doctor-card.selected .andrefarm-form-doctor-photo {
    border-color: var(--andrefarm-accent);
}

.andrefarm-form-doctor-photo img,
.andrefarm-form-doctor-photo .andrefarm-doctor-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Hide broken images */
.andrefarm-form-doctor-photo img[src=""],
.andrefarm-form-doctor-photo img:not([src]) {
    display: none;
}

.andrefarm-form-doctor-photo .andrefarm-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--andrefarm-text-muted);
    background: var(--andrefarm-bg-tertiary);
    border-radius: 50%;
}

.andrefarm-form-doctor-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--andrefarm-text);
    margin: 0 0 0.5rem;
}

.andrefarm-form-doctor-specialty {
    font-size: 0.75rem;
    color: var(--andrefarm-text-secondary);
    margin: 0;
}

/* Doctor card info wrapper */
.andrefarm-form-doctor-info {
    flex: 1;
    min-width: 0;
}

/* Schedule display in form doctor cards */
.andrefarm-form-doctor-card .andrefarm-doctor-schedule {
    font-size: 0.6875rem;
    color: var(--andrefarm-text-tertiary);
    margin-top: 0.375rem;
    line-height: 1.4;
}

/* Next available slot in form doctor cards */
.andrefarm-form-doctor-card .andrefarm-doctor-next {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: var(--andrefarm-success);
    margin-top: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: var(--andrefarm-success-light);
    border-radius: 4px;
    width: fit-content;
}

.andrefarm-form-doctor-card .andrefarm-next-icon {
    font-size: 0.75rem;
}

.andrefarm-form-doctor-card .andrefarm-next-text {
    font-weight: 600;
}

/* Other date card styling */
.andrefarm-other-date-card {
    border-style: dashed;
}

.andrefarm-other-date-card .andrefarm-form-doctor-photo {
    background: var(--andrefarm-bg-tertiary);
    border-color: var(--andrefarm-border);
}

.andrefarm-other-date-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.andrefarm-other-date-icon svg {
    width: 32px;
    height: 32px;
    color: var(--andrefarm-text-muted);
}

.andrefarm-other-date-card:hover .andrefarm-other-date-icon svg {
    color: var(--andrefarm-accent);
}

.andrefarm-other-date-card.selected {
    border-color: var(--andrefarm-accent);
    background: var(--andrefarm-accent-light);
}

.andrefarm-other-date-card.selected .andrefarm-other-date-icon svg {
    color: var(--andrefarm-accent);
}

/* Doctor selection summary */
.andrefarm-doctor-selection-summary {
    text-align: center;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: var(--andrefarm-bg-secondary);
    border-radius: var(--andrefarm-radius-sm);
}

.andrefarm-doctors-selected-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--andrefarm-text-secondary);
}

/* ============================================
   PRESELECTED DOCTOR INFO BOX
   ============================================ */

.andrefarm-preselected-doctor {
    margin-bottom: 1.5rem;
}

.andrefarm-preselected-card {
    position: relative;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid #3B82F6;
    border-radius: var(--andrefarm-radius);
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.andrefarm-preselected-card .andrefarm-preselected-badge {
    position: absolute;
    top: -10px;
    left: 1rem;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.andrefarm-preselected-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.andrefarm-preselected-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--andrefarm-bg-secondary);
    border: 3px solid #3B82F6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.andrefarm-preselected-photo img,
.andrefarm-preselected-photo .andrefarm-doctor-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide broken images in preselected */
.andrefarm-preselected-photo img[src=""],
.andrefarm-preselected-photo img:not([src]) {
    display: none;
}

.andrefarm-preselected-photo .andrefarm-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
}

.andrefarm-preselected-info {
    flex: 1;
    min-width: 0;
}

.andrefarm-preselected-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--andrefarm-text);
    margin-bottom: 0.25rem;
}

.andrefarm-preselected-specialty {
    font-size: 0.875rem;
    color: var(--andrefarm-text-secondary);
    margin-bottom: 0.5rem;
}

.andrefarm-doctor-schedule-info {
    font-size: 0.75rem;
    color: var(--andrefarm-text-tertiary);
    margin-bottom: 0.375rem;
}

.andrefarm-doctor-next-available {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.andrefarm-next-label {
    color: var(--andrefarm-text-tertiary);
    font-weight: 500;
}

.andrefarm-next-value {
    color: #3B82F6;
    font-weight: 600;
}

/* ============================================
   DOCTOR CARD BADGES
   ============================================ */

.andrefarm-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 5;
}

.andrefarm-badge-preselectat {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.andrefarm-badge-recomandat {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

/* Preselected Doctor Badge (legacy) */
.andrefarm-preselected-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: linear-gradient(135deg, var(--andrefarm-success) 0%, #059669 100%);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    z-index: 5;
}

/* PRESELECTAT Badge - stands out more */
.andrefarm-badge-preselectat {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.7); }
}

/* Preselected card styling */
.andrefarm-form-doctor-card.selected.preselected {
    border-color: #3B82F6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(59, 130, 246, 0.08) 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.andrefarm-form-doctor-card.selected.preselected .andrefarm-form-doctor-check {
    background: #3B82F6;
    border-color: #3B82F6;
}

.andrefarm-form-doctor-card.selected.preselected .andrefarm-form-doctor-photo {
    border-color: #3B82F6;
}

/* Checkbox Indicator */
.andrefarm-form-doctor-check {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 24px;
    height: 24px;
    border: 2px solid var(--andrefarm-border);
    border-radius: 6px;
    background: var(--andrefarm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--andrefarm-transition);
}

.andrefarm-form-doctor-check svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--andrefarm-transition);
    color: white;
}

.andrefarm-form-doctor-card.selected .andrefarm-form-doctor-check {
    background: var(--andrefarm-accent);
    border-color: var(--andrefarm-accent);
}

.andrefarm-form-doctor-card.selected .andrefarm-form-doctor-check svg {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   VISIT TYPES (Step 3)
   ============================================ */

.andrefarm-visit-types {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.andrefarm-visit-type {
    display: block;
    cursor: pointer;
}

.andrefarm-visit-type input[type="checkbox"],
.andrefarm-visit-type input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.andrefarm-visit-type-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--andrefarm-bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--andrefarm-radius);
    transition: var(--andrefarm-transition);
}

.andrefarm-visit-type:hover .andrefarm-visit-type-content {
    border-color: var(--andrefarm-border);
    background: var(--andrefarm-bg);
    transform: translateY(-1px);
    box-shadow: var(--andrefarm-shadow);
}

.andrefarm-visit-type input:checked + .andrefarm-visit-type-content {
    border-color: var(--andrefarm-accent);
    background: var(--andrefarm-accent-light);
    box-shadow: 0 4px 12px rgba(222, 53, 51, 0.12);
}

.andrefarm-visit-type-checkbox-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid var(--andrefarm-border);
    border-radius: 6px;
    background: var(--andrefarm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--andrefarm-transition);
}

.andrefarm-visit-type-checkbox-indicator svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--andrefarm-transition);
    color: white;
}

.andrefarm-visit-type input:checked + .andrefarm-visit-type-content .andrefarm-visit-type-checkbox-indicator {
    background: var(--andrefarm-accent);
    border-color: var(--andrefarm-accent);
}

.andrefarm-visit-type input:checked + .andrefarm-visit-type-content .andrefarm-visit-type-checkbox-indicator svg {
    opacity: 1;
    transform: scale(1);
}

.andrefarm-visit-type-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--andrefarm-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.andrefarm-visit-type input:checked + .andrefarm-visit-type-content .andrefarm-visit-type-icon {
    background: white;
    box-shadow: 0 2px 8px rgba(222, 53, 51, 0.15);
}

.andrefarm-visit-type-text {
    flex: 1;
    min-width: 0;
}

.andrefarm-visit-type-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--andrefarm-text);
    margin-bottom: 0.125rem;
}

.andrefarm-visit-type-desc {
    display: block;
    font-size: 0.8125rem;
    color: var(--andrefarm-text-muted);
    line-height: 1.4;
}

/* ============================================
   FORM INPUTS
   ============================================ */

.andrefarm-form-group {
    margin-bottom: 1.25rem;
}

.andrefarm-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--andrefarm-text);
    margin-bottom: 0.5rem;
}

.andrefarm-label.andrefarm-required::after {
    content: ' *';
    color: var(--andrefarm-accent);
}

.andrefarm-input,
.andrefarm-textarea,
.andrefarm-select {
    width: 100%;
    padding: 0.9375rem 1.125rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    color: var(--andrefarm-text);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.andrefarm-input:hover,
.andrefarm-textarea:hover,
.andrefarm-select:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
}

.andrefarm-input:focus,
.andrefarm-textarea:focus,
.andrefarm-select:focus {
    outline: none;
    border-color: var(--andrefarm-accent);
    box-shadow: 0 0 0 3px rgba(222, 53, 51, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.04);
    background: #ffffff;
}

.andrefarm-input::placeholder,
.andrefarm-textarea::placeholder {
    color: rgba(107, 114, 128, 0.5);
    font-weight: 400;
}

.andrefarm-input.error,
.andrefarm-textarea.error,
.andrefarm-select.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.03);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.andrefarm-textarea {
    resize: vertical;
    min-height: 100px;
}

.andrefarm-hint {
    display: block;
    font-size: 0.75rem;
    color: rgba(107, 114, 128, 0.6);
    margin-top: 0.375rem;
    line-height: 1.4;
}

/* Field error message - soft and small */
.andrefarm-field-error {
    display: none;
    font-size: 0.6875rem;
    color: rgba(239, 68, 68, 0.85);
    margin-top: 0.25rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.andrefarm-form-group.has-error .andrefarm-field-error {
    display: block;
}

/* Required hint - very subtle */
.andrefarm-field-required-hint {
    display: block;
    font-size: 0.625rem;
    color: rgba(107, 114, 128, 0.5);
    margin-top: 0.25rem;
    font-weight: 400;
}

/* Optional label styling */
.andrefarm-optional {
    font-weight: 400;
    color: rgba(107, 114, 128, 0.6);
    font-size: 0.875em;
}

/* ============================================
   FORM ACTIONS
   ============================================ */

.andrefarm-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
    background: transparent;
}

/* Ensure all buttons in form actions are rounded */
.andrefarm-form-actions .andrefarm-btn {
    border-radius: 50px !important;
}

/* Step 1 Actions - Top and Bottom bars */
.andrefarm-step1-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    background: transparent;
    transition: var(--andrefarm-transition);
    gap: 0.75rem;
    margin-top: 0;
}

.andrefarm-step1-actions-top {
    margin-bottom: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    padding: 0.5rem 0;
}

.andrefarm-step1-actions-bottom {
    margin-top: 0.75rem;
}

/* Selected info styling */
.andrefarm-selected-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--andrefarm-text-secondary);
    font-weight: 500;
}

.andrefarm-selected-icon {
    display: none;
    width: 18px;
    height: 18px;
    background: var(--andrefarm-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.625rem;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
    flex-shrink: 0;
}

.andrefarm-step1-actions.has-selection .andrefarm-selected-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.andrefarm-selected-count-text .count-number {
    font-weight: 700;
    color: var(--andrefarm-primary);
    font-size: 0.9375rem;
}

/* Step 1 Continue button - ensure rounded */
.andrefarm-step1-actions .andrefarm-btn-next {
    border-radius: 50px !important;
}

/* Mobile responsive for step1 actions */
@media (max-width: 640px) {
    .andrefarm-step1-actions {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.5rem;
    }

    .andrefarm-step1-actions .andrefarm-btn-next {
        width: 100%;
        justify-content: center;
    }

    .andrefarm-selected-info {
        justify-content: center;
    }
}

/* Back Button - Minimalist text only */
.andrefarm-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    background: transparent;
    color: #9CA3AF;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.andrefarm-btn-back:hover {
    color: #6B7280;
}

.andrefarm-btn-back svg {
    stroke: currentColor;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.andrefarm-btn-back:hover svg {
    transform: translateX(-3px);
}

/* Next/Submit Button - Premium Design */
.andrefarm-btn-next,
.andrefarm-btn-next:link,
.andrefarm-btn-next:visited,
.andrefarm-submit,
.andrefarm-submit:link,
.andrefarm-submit:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    background: linear-gradient(145deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%) !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.andrefarm-btn-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.andrefarm-btn-next:hover:not(:disabled)::before {
    left: 100%;
}

.andrefarm-btn-next:hover:not(:disabled) {
    background: linear-gradient(145deg, #DC2626 0%, #B91C1C 50%, #991B1B 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.andrefarm-btn-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.andrefarm-btn-next svg,
.andrefarm-submit svg {
    stroke: #FFFFFF !important;
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.andrefarm-btn-next:hover:not(:disabled) svg,
.andrefarm-submit:hover:not(:disabled) svg {
    transform: translateX(4px);
}

/* Submit button special styling - GREEN for positive action */
.andrefarm-submit,
.andrefarm-submit:link,
.andrefarm-submit:visited {
    min-width: 200px;
    padding: 1.125rem 2.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35), 0 2px 6px rgba(16, 185, 129, 0.2) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.andrefarm-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.andrefarm-submit:hover:not(:disabled)::before {
    left: 100%;
}

.andrefarm-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4), 0 3px 10px rgba(16, 185, 129, 0.25) !important;
    transform: translateY(-2px);
}

.andrefarm-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.andrefarm-submit:disabled {
    background: #9ca3af !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .andrefarm-submit {
        width: 100%;
        padding: 1.25rem 2rem !important;
        font-size: 1.125rem !important;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

/* ============================================
   CHECKOUT SUMMARY
   ============================================ */

.andrefarm-checkout-summary {
    background: linear-gradient(135deg, var(--andrefarm-bg-secondary) 0%, var(--andrefarm-bg) 100%);
    border: 2px solid var(--andrefarm-border-light);
    border-radius: var(--andrefarm-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.andrefarm-checkout-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--andrefarm-border-light);
}

.andrefarm-checkout-icon {
    font-size: 1.25rem;
}

.andrefarm-checkout-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--andrefarm-text);
    margin: 0;
}

.andrefarm-checkout-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.andrefarm-checkout-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.andrefarm-checkout-item-icon {
    width: 28px;
    height: 28px;
    background: var(--andrefarm-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.andrefarm-checkout-item-content {
    flex: 1;
    min-width: 0;
}

.andrefarm-checkout-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--andrefarm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.andrefarm-checkout-item-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--andrefarm-text);
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Tags for checkout */
.andrefarm-checkout-item-value .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--andrefarm-accent-light);
    color: var(--andrefarm-text);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.andrefarm-checkout-item-value .tag.removable {
    padding-right: 0.375rem;
}

.andrefarm-checkout-item-value .tag-remove {
    width: 18px;
    height: 18px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--andrefarm-transition);
    line-height: 1;
}

.andrefarm-checkout-item-value .tag-remove:hover {
    background: var(--andrefarm-accent);
    color: white;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.andrefarm-form-success {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.andrefarm-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--andrefarm-success) 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.andrefarm-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--andrefarm-text);
    margin: 0 0 0.75rem;
}

.andrefarm-success-message {
    font-size: 1rem;
    color: var(--andrefarm-text-secondary);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.andrefarm-success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.andrefarm-success-actions .andrefarm-btn {
    width: 100%;
}

/* GDPR Consent Checkbox */
.andrefarm-gdpr-consent {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #FCD34D;
    border-radius: var(--andrefarm-radius);
}

.andrefarm-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.andrefarm-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 24px;
    width: 24px;
    top: 0;
    left: 0;
    z-index: 10;
    margin: 0;
}

.andrefarm-checkbox-mark {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #FFFFFF;
    border: 2px solid #D97706;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.andrefarm-checkbox-mark::after {
    content: '';
    width: 6px;
    height: 12px;
    border: solid #FFFFFF;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
    margin-bottom: 2px;
}

.andrefarm-checkbox-container input:checked ~ .andrefarm-checkbox-mark {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.andrefarm-checkbox-container input:checked ~ .andrefarm-checkbox-mark::after {
    transform: rotate(45deg) scale(1);
}

.andrefarm-checkbox-container:hover .andrefarm-checkbox-mark {
    border-color: #B45309;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.andrefarm-checkbox-container input:checked:hover ~ .andrefarm-checkbox-mark {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.andrefarm-checkbox-label {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #78350F;
    font-weight: 500;
}

.andrefarm-checkbox-label a {
    color: #B45309;
    text-decoration: underline;
    font-weight: 600;
}

.andrefarm-checkbox-label a:hover {
    color: #92400E;
}

/* Old class - hidden */
.andrefarm-gdpr-required {
    display: none;
}

/* GDPR validation error state */
.andrefarm-gdpr-consent.andrefarm-error {
    border-color: rgba(220, 38, 38, 0.5);
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.7) 0%, rgba(254, 202, 202, 0.5) 100%);
}

/* Ensure checkbox is always clickable - appointment form */
.andrefarm-gdpr-consent .andrefarm-checkbox-container {
    pointer-events: auto;
}

.andrefarm-gdpr-consent .andrefarm-checkbox-container input[type="checkbox"] {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Checkbox mark should not block clicks */
.andrefarm-gdpr-consent .andrefarm-checkbox-mark {
    pointer-events: none;
}

/* Confirmation Notice */
.andrefarm-confirmation-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: var(--andrefarm-radius);
    margin-top: 1.5rem;
}

.andrefarm-notice-icon {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.5;
}

.andrefarm-notice-content {
    flex: 1;
}

.andrefarm-notice-title {
    display: none;
}

.andrefarm-notice-text {
    font-size: 0.8125rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

/* WhatsApp Button */
.andrefarm-btn-whatsapp {
    background: linear-gradient(145deg, #25D366 0%, #128C7E 100%) !important;
    color: white !important;
}

.andrefarm-btn-whatsapp:hover {
    background: linear-gradient(145deg, #128C7E 0%, #075E54 100%) !important;
}

/* Secondary Button */
.andrefarm-btn-secondary {
    background: white !important;
    color: var(--andrefarm-text) !important;
    border: 2px solid var(--andrefarm-border) !important;
}

.andrefarm-btn-secondary:hover {
    background: var(--andrefarm-bg-secondary) !important;
    border-color: var(--andrefarm-text-muted) !important;
}

/* ============================================
   MODAL
   ============================================ */

.andrefarm-modal-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--andrefarm-accent);
    color: white;
    border: none;
    border-radius: var(--andrefarm-radius);
    cursor: pointer;
    transition: var(--andrefarm-transition);
    box-shadow: 0 4px 14px rgba(222, 53, 51, 0.3);
}

.andrefarm-modal-trigger:hover {
    background: var(--andrefarm-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(222, 53, 51, 0.4);
}

.andrefarm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.andrefarm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.andrefarm-modal {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.andrefarm-modal-overlay.active .andrefarm-modal {
    transform: scale(1) translateY(0);
}

.andrefarm-modal .andrefarm-form-container {
    margin: 0;
    box-shadow: var(--andrefarm-shadow-xl);
}

.andrefarm-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: var(--andrefarm-bg-secondary);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--andrefarm-text-muted);
    cursor: pointer;
    transition: var(--andrefarm-transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.andrefarm-modal-close:hover {
    background: var(--andrefarm-bg-tertiary);
    color: var(--andrefarm-text);
    transform: rotate(90deg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 640px) {
    /* Form Container */
    .andrefarm-form-container {
        padding: 1.5rem;
        border-radius: var(--andrefarm-radius);
        margin: 0 -0.5rem;
    }

    .andrefarm-form-title {
        font-size: 1.375rem;
    }

    /* Steps */
    .andrefarm-steps::before {
        left: 30px;
        right: 30px;
    }

    .andrefarm-step-label {
        display: none;
    }

    .andrefarm-step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    /* Specialties Grid */
    .andrefarm-form-specialties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .andrefarm-form-specialty-card {
        padding: 1rem 0.75rem;
    }

    .andrefarm-form-specialty-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .andrefarm-form-specialty-name {
        font-size: 0.75rem;
    }

    /* Doctors Grid */
    .andrefarm-form-doctors-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .andrefarm-form-doctor-card {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
        min-height: auto;
        gap: 1rem;
        padding-left: 2.5rem;
    }

    .andrefarm-form-doctor-photo {
        width: 60px;
        height: 60px;
        margin: 0;
        flex-shrink: 0;
    }

    .andrefarm-form-doctor-check {
        top: 0.625rem;
        left: 0.625rem;
        width: 20px;
        height: 20px;
    }

    .andrefarm-form-doctor-check svg {
        width: 12px;
        height: 12px;
    }

    /* Form Actions */
    .andrefarm-form-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .andrefarm-btn-back,
    .andrefarm-btn-next {
        width: 100%;
        justify-content: center;
    }

    /* Doctor Profile */
    .andrefarm-doctor-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .andrefarm-doctor-profile-photo {
        width: 140px;
        height: 140px;
    }

    .andrefarm-doctor-profile-info .andrefarm-doctor-specialties {
        justify-content: center;
    }

    /* Checkout Summary */
    .andrefarm-checkout-summary {
        padding: 1rem;
    }

    .andrefarm-checkout-item {
        flex-direction: column;
        gap: 0.375rem;
    }

    /* Modal */
    .andrefarm-modal {
        max-height: 95vh;
    }

    .andrefarm-modal .andrefarm-form-container {
        border-radius: var(--andrefarm-radius);
    }

    /* Success */
    .andrefarm-success-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .andrefarm-form-container,
    .andrefarm-doctor-card,
    .andrefarm-specialty-card {
        box-shadow: none;
        border: 1px solid var(--andrefarm-border);
    }

    .andrefarm-modal-overlay {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .andrefarm-form-container *,
    .andrefarm-doctor-card,
    .andrefarm-specialty-card,
    .andrefarm-modal-overlay,
    .andrefarm-modal {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   WEEKLY SCHEDULE V2 - Horizontal Tabs Design
   ============================================ */

.andrefarm-schedule-v2 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

/* Title */
.andrefarm-schedule-v2 .andrefarm-schedule-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--andrefarm-text);
    text-align: center;
    margin: 0;
    letter-spacing: -0.01em;
}

/* ============================================
   PILLS NAVIGATION - Premium Day Selector
   ============================================ */

.andrefarm-schedule-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.35rem;
    background: rgba(59, 130, 246, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: none;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.andrefarm-schedule-tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.5rem 0.6rem;
    background: rgba(59, 130, 246, 0.05) !important;
    border: 1.5px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    font-family: inherit;
    box-shadow: none;
    overflow: visible;
    min-width: 52px;
}

.andrefarm-schedule-tab .tab-short {
    display: none;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #3B82F6 !important;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.andrefarm-schedule-tab .tab-full {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #3B82F6 !important;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.andrefarm-schedule-tab .tab-today {
    display: none;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--andrefarm-accent);
    color: #fff;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    margin-left: 0.25rem;
}

/* Pill States */
.andrefarm-schedule-tab:hover:not(.disabled):not(.active) {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.andrefarm-schedule-tab:hover:not(.disabled):not(.active) .tab-full,
.andrefarm-schedule-tab:hover:not(.disabled):not(.active) .tab-short {
    color: #3B82F6 !important;
}

.andrefarm-schedule-tab.active {
    background: rgba(59, 130, 246, 0.12) !important;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
    border: 1.5px solid rgba(59, 130, 246, 0.45) !important;
}

.andrefarm-schedule-tab.active .tab-full,
.andrefarm-schedule-tab.active .tab-short {
    color: #2563EB !important;
    font-weight: 700;
}

.andrefarm-schedule-tab.active .tab-day,
.andrefarm-schedule-tab.active .tab-date,
.andrefarm-schedule-tab.active .tab-month {
    opacity: 1;
}

.andrefarm-schedule-tab.active .tab-date {
    color: #1D4ED8 !important;
    font-weight: 800;
}

.andrefarm-schedule-tab.active .tab-today {
    display: inline-block;
}

.andrefarm-schedule-tab.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.andrefarm-schedule-tab.disabled:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

/* Today indicator for inactive tabs */
.andrefarm-schedule-tab.today:not(.active)::before {
    content: '';
    position: absolute;
    bottom: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background: var(--andrefarm-accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.5); opacity: 0.5; }
}

/* ============================================
   PANELS - Day Content
   ============================================ */

.andrefarm-schedule-panels {
    position: relative;
}

.andrefarm-schedule-panel {
    display: none;
    animation: fadeInPanel 0.3s ease;
}

.andrefarm-schedule-panel.active {
    display: block;
}

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

/* ============================================
   GRID - Smart Card Layout
   ============================================ */

.andrefarm-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

/* ============================================
   CARD - Doctor/Specialty Card
   ============================================ */

.andrefarm-schedule-card {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.25rem;
    background: var(--andrefarm-bg);
    border: 2px solid var(--andrefarm-border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.andrefarm-schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color, var(--andrefarm-accent));
    border-radius: 16px 16px 0 0;
}

.andrefarm-schedule-card:hover {
    border-color: var(--card-color, var(--andrefarm-accent));
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Card Specialty Header */
.schedule-card-specialty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-card-specialty .specialty-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.schedule-card-specialty span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--card-color, var(--andrefarm-text-secondary));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Card Doctor Info */
.schedule-card-doctor {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.schedule-card-doctor .doctor-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--andrefarm-bg-secondary);
    flex-shrink: 0;
}

.schedule-card-doctor .doctor-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--card-color, var(--andrefarm-accent));
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--card-color, var(--andrefarm-accent)) 15%, white),
        color-mix(in srgb, var(--card-color, var(--andrefarm-accent)) 25%, white)
    );
}

.schedule-card-doctor .doctor-info {
    flex: 1;
    min-width: 0;
}

.schedule-card-doctor .doctor-name {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--andrefarm-text);
    line-height: 1.3;
}

.schedule-card-doctor .doctor-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--andrefarm-text-tertiary);
    margin-top: 0.125rem;
}

/* Card Times */
.schedule-card-times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.schedule-card-times .time-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--card-color, var(--andrefarm-accent));
    background: color-mix(in srgb, var(--card-color, var(--andrefarm-accent)) 10%, white);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
}

/* Card Action */
.schedule-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--card-color, var(--andrefarm-accent));
    color: white;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
}

.schedule-card-action svg {
    transition: transform 0.3s ease;
}

.andrefarm-schedule-card:hover .schedule-card-action {
    background: color-mix(in srgb, var(--card-color, var(--andrefarm-accent)) 85%, black);
}

.andrefarm-schedule-card:hover .schedule-card-action svg {
    transform: translateX(4px);
}

/* ============================================
   RESPONSIVE - Tablet
   ============================================ */

@media (max-width: 900px) {
    .andrefarm-schedule-tabs {
        padding: 0.375rem;
        gap: 0.25rem;
    }

    .andrefarm-schedule-tab {
        padding: 0.75rem 1.25rem;
    }
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */

@media (max-width: 768px) {
    .andrefarm-schedule-v2 {
        padding: 1rem 0;
    }

    .andrefarm-schedule-v2 .andrefarm-schedule-title {
        font-size: 1.1rem;
        margin-bottom: 0;
    }

    .andrefarm-schedule-header {
        gap: 0.25rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .andrefarm-week-info {
        gap: 0.3rem;
    }

    .andrefarm-week-info .week-dates {
        font-size: 0.65rem;
    }

    .andrefarm-week-info .week-current-badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.3rem;
    }

    /* Mobile Pills - Ultra compact day tabs */
    .andrefarm-schedule-tabs {
        gap: 0.1rem;
        padding: 0.15rem;
        margin-bottom: 0.6rem;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        justify-content: space-between;
        background: rgba(59, 130, 246, 0.02);
        border: 1px solid rgba(59, 130, 246, 0.06);
    }

    .andrefarm-schedule-tab {
        padding: 0.2rem 0.15rem;
        min-width: 32px;
        flex: 1 1 0;
        border-width: 1px !important;
        border-radius: 6px !important;
        gap: 0 !important;
    }

    /* Mobile date-based tabs - ultra compact */
    .andrefarm-schedule-tab .tab-day {
        font-size: 0.45rem !important;
        letter-spacing: 0;
        opacity: 0.7;
        line-height: 1;
    }

    .andrefarm-schedule-tab .tab-date {
        font-size: 0.75rem !important;
        line-height: 1.1;
    }

    .andrefarm-schedule-tab .tab-today-badge {
        font-size: 0.35rem !important;
        padding: 0.05rem 0.1rem !important;
        top: -0.3rem;
        right: -0.2rem;
    }

    /* Hide full name, show short by default */
    .andrefarm-schedule-tab .tab-short {
        display: block;
        font-size: 0.6rem;
    }

    .andrefarm-schedule-tab .tab-full {
        display: none;
    }

    /* Active tab */
    .andrefarm-schedule-tab.active {
        padding: 0.22rem 0.18rem;
        flex: 1 1 0;
    }

    .andrefarm-schedule-tab.active .tab-date {
        font-size: 0.8rem !important;
        font-weight: 800 !important;
    }

    .andrefarm-schedule-tab.active .tab-short {
        display: none;
    }

    .andrefarm-schedule-tab.active .tab-full {
        display: block;
        font-size: 0.6rem;
    }

    .andrefarm-schedule-tab.active .tab-today {
        display: inline-block;
        font-size: 0.4rem;
        padding: 0.05rem 0.1rem;
    }

    /* Today tab - mobile adjustments */
    .andrefarm-schedule-tab.today .tab-date {
        font-size: 0.85rem !important;
    }

    /* Today indicator adjustment */
    .andrefarm-schedule-tab.today:not(.active)::before {
        bottom: 0.15rem;
        width: 2px;
        height: 2px;
    }

    /* Mobile Grid - 2 columns */
    .andrefarm-schedule-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    /* Mobile Cards - compact for 2-column layout */
    .andrefarm-schedule-card {
        padding: 0.75rem;
        border-radius: 12px;
        gap: 0.5rem;
    }

    .schedule-card-doctor .doctor-photo {
        width: 40px;
        height: 40px;
    }

    .schedule-card-doctor .doctor-name {
        font-size: 0.875rem;
    }

    .schedule-card-doctor .doctor-specialty {
        font-size: 0.7rem;
    }

    .schedule-card-times .time-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .schedule-card-action {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   RESPONSIVE - Small Mobile (480px)
   ============================================ */

@media (max-width: 480px) {
    .andrefarm-schedule-tabs {
        padding: 0.1rem;
        gap: 0.08rem;
        border-radius: 6px;
    }

    .andrefarm-schedule-tab {
        min-width: 28px;
        padding: 0.15rem 0.1rem;
        border-radius: 5px !important;
    }

    .andrefarm-schedule-tab .tab-day {
        font-size: 0.4rem !important;
    }

    .andrefarm-schedule-tab .tab-date {
        font-size: 0.65rem !important;
    }

    .andrefarm-schedule-tab .tab-short {
        font-size: 0.55rem;
        font-weight: 700;
    }

    .andrefarm-schedule-tab.active {
        padding: 0.18rem 0.12rem;
    }

    .andrefarm-schedule-tab.active .tab-full {
        font-size: 0.55rem;
    }

    .andrefarm-schedule-tab.active .tab-today {
        font-size: 0.35rem;
        padding: 0.04rem 0.08rem;
    }

    .andrefarm-schedule-tab .tab-today-badge {
        font-size: 0.3rem !important;
        padding: 0.04rem 0.08rem !important;
        top: -0.25rem;
        right: -0.15rem;
    }
}

/* ============================================
   RESPONSIVE - Very Small Mobile (375px - iPhone SE etc)
   ============================================ */

@media (max-width: 375px) {
    .andrefarm-schedule-tabs {
        border-radius: 5px;
        padding: 0.08rem;
        gap: 0.05rem;
    }

    .andrefarm-schedule-tab {
        min-width: 24px;
        padding: 0.12rem 0.08rem;
        border-radius: 4px !important;
    }

    .andrefarm-schedule-tab .tab-day {
        font-size: 0.35rem !important;
    }

    .andrefarm-schedule-tab .tab-date {
        font-size: 0.55rem !important;
    }

    .andrefarm-schedule-tab .tab-short {
        font-size: 0.5rem;
    }

    .andrefarm-schedule-tab.active {
        padding: 0.14rem 0.1rem;
    }

    .andrefarm-schedule-tab.active .tab-full {
        font-size: 0.5rem;
    }

    .andrefarm-schedule-tab .tab-today-badge {
        font-size: 0.25rem !important;
        top: -0.2rem;
        right: -0.12rem;
    }
}

/* ============================================
   EMPTY STATE
   ============================================ */

.andrefarm-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--andrefarm-text-tertiary);
    font-size: 1rem;
}

/* ============================================
   WHATSAPP HELP BADGE - Soft, Non-aggressive
   ============================================ */

.andrefarm-whatsapp-help {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--andrefarm-border);
}

.andrefarm-whatsapp-help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 50px;
    text-decoration: none;
    color: #166534;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.08);
}

.andrefarm-whatsapp-help-link:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    border-color: #86efac;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
    color: #15803d;
}

.andrefarm-whatsapp-icon {
    width: 18px;
    height: 18px;
    color: #25D366;
    flex-shrink: 0;
}

.andrefarm-whatsapp-help-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    line-height: 1.2;
}

.andrefarm-whatsapp-help-text strong {
    font-weight: 700;
    color: #15803d;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .andrefarm-whatsapp-help {
        margin-top: 1.25rem;
        padding-top: 1rem;
    }

    .andrefarm-whatsapp-help-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        gap: 0.375rem;
    }

    .andrefarm-whatsapp-icon {
        width: 16px;
        height: 16px;
    }

    .andrefarm-whatsapp-help-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
}

/* Very small screens - stack vertically */
@media (max-width: 360px) {
    .andrefarm-whatsapp-help-link {
        flex-direction: column;
        text-align: center;
        padding: 0.625rem 1rem;
        border-radius: 12px;
    }

    .andrefarm-whatsapp-help-text {
        align-items: center;
    }
}

/* Hide on success state */
.andrefarm-form-success ~ .andrefarm-whatsapp-help {
    display: none;
}

/* Dark Mode Support (placeholder) */
@media (prefers-color-scheme: dark) {
    /* Can be enhanced later */
}

/* ============================================
   WEEKLY SCHEDULE V2 - DATE-BASED NAVIGATION
   ============================================ */

/* Schedule Header with week info */
.andrefarm-schedule-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.08);
}

.andrefarm-schedule-header .andrefarm-schedule-title {
    margin: 0;
    order: 2;
    padding-top: 0.25rem;
}

.andrefarm-week-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--andrefarm-text-secondary);
    order: 1;
}

.andrefarm-week-info .week-dates {
    font-weight: 600;
    color: #3B82F6;
    font-size: 0.75rem;
}

.andrefarm-week-info .week-current-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.4rem;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Date-based tabs - Desktop compact */
.andrefarm-schedule-tab .tab-day {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #3B82F6;
    opacity: 0.7;
}

.andrefarm-schedule-tab .tab-date {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    color: #2563EB;
}

.andrefarm-schedule-tab .tab-month {
    display: none; /* Ascundem luna pentru un design mai curat */
}

.andrefarm-schedule-tab .tab-today-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.4rem;
    padding: 0.15rem 0.35rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-radius: 999px;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
    z-index: 10;
}

/* Today tab - special styling with green accent to stand out */
.andrefarm-schedule-tab.today {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%) !important;
    border: 1.5px solid #10B981 !important;
    z-index: 5;
}

.andrefarm-schedule-tab.today.active {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%) !important;
    border: 1.5px solid #059669 !important;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.2);
}

.andrefarm-schedule-tab.today .tab-day,
.andrefarm-schedule-tab.today .tab-month {
    color: #065F46 !important;
    opacity: 0.8;
}

.andrefarm-schedule-tab.today .tab-date {
    color: #047857 !important;
    font-weight: 800;
    font-size: 1.1rem;
}

.andrefarm-schedule-tab.past {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Weekend (Saturday) - faded when no availability */
.andrefarm-schedule-tab.weekend-empty {
    opacity: 0.35;
    background: var(--andrefarm-bg-tertiary);
}

.andrefarm-schedule-tab.weekend-empty .tab-day,
.andrefarm-schedule-tab.weekend-empty .tab-date,
.andrefarm-schedule-tab.weekend-empty .tab-month {
    color: var(--andrefarm-text-muted);
}

/* Weekend with availability - normal styling */
.andrefarm-schedule-tab.weekend-available {
    opacity: 1;
}

/* Doctor slots count */
.doctor-slots {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--andrefarm-success-light);
    color: var(--andrefarm-success);
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Week Block - Each week has its own container */
.andrefarm-week-block {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--andrefarm-border-light);
}

.andrefarm-week-block:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.andrefarm-week-block-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.andrefarm-week-block-header .week-dates {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--andrefarm-bg-tertiary) 0%, var(--andrefarm-border-light) 100%);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--andrefarm-text-secondary);
    border: 1px solid var(--andrefarm-border);
}

/* Week separator - legacy support */
.andrefarm-week-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 0;
    margin: 0.5rem 0;
}

.andrefarm-week-separator span {
    padding: 0.25rem 0.75rem;
    background: var(--andrefarm-bg-tertiary);
    border-radius: var(--andrefarm-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--andrefarm-text-secondary);
}

/* Empty week indicator */
.andrefarm-week-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.5rem 1rem;
    background: var(--andrefarm-bg-secondary);
    border-radius: var(--andrefarm-radius);
    border: 1px dashed var(--andrefarm-border);
}

.andrefarm-week-empty span {
    color: var(--andrefarm-text-tertiary);
    font-size: 0.875rem;
    font-style: italic;
}

/* Load More Button */
.andrefarm-week-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed var(--andrefarm-border-light);
}

.andrefarm-load-more-week {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    padding: 0.875rem 2rem !important;
    background: rgba(59, 130, 246, 0.08) !important;
    border: 2px solid rgba(59, 130, 246, 0.35) !important;
    border-radius: 999px !important;
    color: #3B82F6 !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.andrefarm-load-more-week:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12) !important;
    color: #2563EB !important;
}

.andrefarm-load-more-week:active:not(:disabled) {
    transform: translateY(0) !important;
    background: rgba(59, 130, 246, 0.15) !important;
}

.andrefarm-load-more-week:disabled {
    opacity: 0.8;
    cursor: wait;
    transform: none;
}

.andrefarm-load-more-week svg {
    flex-shrink: 0;
    stroke: #2563EB;
}

.andrefarm-load-more-week .load-more-text,
.andrefarm-load-more-week .load-more-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Loading spinner */
.andrefarm-load-more-week .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    animation: andrefarm-spin 0.8s linear infinite;
}

@keyframes andrefarm-spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments for week navigation */
@media (max-width: 640px) {
    .andrefarm-schedule-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .andrefarm-week-info {
        width: 100%;
        justify-content: space-between;
    }

    .andrefarm-schedule-tab .tab-date {
        font-size: 1rem;
    }

    .andrefarm-schedule-tab .tab-day,
    .andrefarm-schedule-tab .tab-month {
        font-size: 0.625rem;
    }

    .andrefarm-load-more-week {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
}

/* ============================================
   CONTACT FORM
   ============================================ */

.andrefarm-contact-form-container {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--andrefarm-bg);
    border-radius: var(--andrefarm-radius-lg);
    padding: 2rem;
    max-width: 520px;
}

.andrefarm-contact-form-container .andrefarm-form-header {
    margin-bottom: 1.5rem;
}

.andrefarm-contact-form-container .andrefarm-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--andrefarm-text);
    margin: 0 0 0.5rem 0;
}

.andrefarm-contact-form-container .andrefarm-form-subtitle {
    font-size: 0.9375rem;
    color: var(--andrefarm-text-secondary);
    margin: 0;
}

/* Contact form inputs */
.andrefarm-contact-form .andrefarm-form-group {
    margin-bottom: 1.25rem;
}

.andrefarm-contact-form .andrefarm-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--andrefarm-text);
    margin-bottom: 0.5rem;
}

.andrefarm-contact-form .andrefarm-label.andrefarm-required::after {
    content: '*';
    color: var(--andrefarm-primary);
    margin-left: 0.25rem;
}

.andrefarm-contact-form .andrefarm-optional {
    font-weight: 400;
    color: var(--andrefarm-text-muted);
    font-size: 0.8125rem;
}

.andrefarm-contact-form .andrefarm-input,
.andrefarm-contact-form .andrefarm-select,
.andrefarm-contact-form .andrefarm-textarea {
    width: 100%;
    padding: 0.9375rem 1.125rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--andrefarm-text);
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.andrefarm-contact-form .andrefarm-input:hover,
.andrefarm-contact-form .andrefarm-select:hover,
.andrefarm-contact-form .andrefarm-textarea:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
}

.andrefarm-contact-form .andrefarm-input:focus,
.andrefarm-contact-form .andrefarm-select:focus,
.andrefarm-contact-form .andrefarm-textarea:focus {
    outline: none;
    border-color: var(--andrefarm-primary);
    box-shadow: 0 0 0 3px rgba(222, 53, 51, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.04);
    background: #ffffff;
}

.andrefarm-contact-form .andrefarm-input::placeholder,
.andrefarm-contact-form .andrefarm-textarea::placeholder {
    color: rgba(107, 114, 128, 0.45);
    font-weight: 400;
}

.andrefarm-contact-form .andrefarm-textarea {
    resize: vertical;
    min-height: 100px;
}

.andrefarm-contact-form .andrefarm-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-color: transparent;
    padding-right: 3rem;
    cursor: pointer;
}

/* Select placeholder styling */
.andrefarm-contact-form .andrefarm-select option[value=""] {
    color: rgba(107, 114, 128, 0.5);
}

/* Error states - soft and subtle */
.andrefarm-contact-form .andrefarm-form-group.has-error .andrefarm-input,
.andrefarm-contact-form .andrefarm-form-group.has-error .andrefarm-select,
.andrefarm-contact-form .andrefarm-form-group.has-error .andrefarm-textarea {
    border-color: rgba(239, 68, 68, 0.5);
}

.andrefarm-contact-form .andrefarm-error-message {
    display: none;
    font-size: 0.6875rem;
    color: rgba(239, 68, 68, 0.8);
    margin-top: 0.25rem;
    min-height: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.andrefarm-contact-form .andrefarm-form-group.has-error .andrefarm-error-message {
    display: block;
}

/* GDPR Checkbox */
.andrefarm-contact-form .andrefarm-gdpr-group {
    margin-top: 1.5rem;
}

.andrefarm-contact-form .andrefarm-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--andrefarm-text-secondary);
    line-height: 1.5;
    position: relative;
}

.andrefarm-contact-form .andrefarm-checkbox {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    z-index: 10;
    cursor: pointer;
    margin: 0;
}

.andrefarm-contact-form .andrefarm-checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--andrefarm-border);
    border-radius: 4px;
    background: var(--andrefarm-bg);
    transition: var(--andrefarm-transition);
    position: relative;
}

.andrefarm-contact-form .andrefarm-checkbox:checked + .andrefarm-checkbox-custom {
    background: var(--andrefarm-primary);
    border-color: var(--andrefarm-primary);
}

.andrefarm-contact-form .andrefarm-checkbox:checked + .andrefarm-checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.andrefarm-contact-form .andrefarm-checkbox:focus + .andrefarm-checkbox-custom {
    box-shadow: 0 0 0 3px var(--andrefarm-primary-light);
}

.andrefarm-contact-form .andrefarm-checkbox-text a {
    color: var(--andrefarm-primary);
    text-decoration: none;
}

.andrefarm-contact-form .andrefarm-checkbox-text a:hover {
    text-decoration: underline;
}

/* GDPR error state for contact form */
.andrefarm-contact-form .andrefarm-gdpr-group.has-error .andrefarm-checkbox-custom {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(254, 226, 226, 0.3);
}

/* Ensure checkbox and label stay clickable in ALL states */
.andrefarm-contact-form .andrefarm-gdpr-group .andrefarm-checkbox-label,
.andrefarm-contact-form .andrefarm-gdpr-group .andrefarm-checkbox-label * {
    pointer-events: auto !important;
}

.andrefarm-contact-form .andrefarm-gdpr-group .andrefarm-checkbox {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Ensure the checkbox custom indicator doesn't block clicks */
.andrefarm-contact-form .andrefarm-checkbox-custom {
    pointer-events: none;
}

/* Contact form actions */
.andrefarm-contact-actions {
    margin-top: 1.5rem;
}

.andrefarm-contact-submit {
    width: 100%;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    background: linear-gradient(145deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%) !important;
    color: #FFFFFF !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.andrefarm-contact-submit:hover:not(:disabled) {
    background: linear-gradient(145deg, #DC2626 0%, #B91C1C 50%, #991B1B 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.45);
}

.andrefarm-contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.andrefarm-contact-submit .andrefarm-btn-text,
.andrefarm-contact-submit .andrefarm-btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Spinner */
.andrefarm-contact-submit .andrefarm-spinner {
    animation: andrefarm-spin 0.8s linear infinite;
}

/* Success state */
.andrefarm-contact-success {
    text-align: center;
    padding: 2rem 1rem;
}

.andrefarm-contact-success .andrefarm-success-icon {
    margin-bottom: 1.25rem;
}

.andrefarm-contact-success .andrefarm-success-icon svg {
    stroke: var(--andrefarm-success);
}

.andrefarm-contact-success .andrefarm-success-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--andrefarm-text);
    margin: 0 0 0.75rem 0;
}

.andrefarm-contact-success .andrefarm-success-message {
    font-size: 1rem;
    color: var(--andrefarm-text-secondary);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.andrefarm-contact-success .andrefarm-success-phone {
    font-size: 0.9375rem;
    color: var(--andrefarm-text-tertiary);
    margin: 0;
}

.andrefarm-contact-success .andrefarm-success-phone a {
    color: var(--andrefarm-primary);
    font-weight: 600;
    text-decoration: none;
}

.andrefarm-contact-success .andrefarm-success-phone a:hover {
    text-decoration: underline;
}

/* Contact Form Responsive */
@media (max-width: 640px) {
    .andrefarm-contact-form-container {
        padding: 1.5rem;
        border-radius: var(--andrefarm-radius);
    }

    .andrefarm-contact-form-container .andrefarm-form-title {
        font-size: 1.25rem;
    }

    .andrefarm-contact-form .andrefarm-input,
    .andrefarm-contact-form .andrefarm-select,
    .andrefarm-contact-form .andrefarm-textarea {
        padding: 0.75rem 0.875rem;
        font-size: 1rem;
    }

    .andrefarm-contact-submit {
        padding: 1rem 1.5rem !important;
    }
}
