/* Tuteer Design System - Custom Contact Form Styles */

:root {
  --ttr-radius-lg: 1rem;
  --ttr-radius-2xl: 1.5rem;
  --ttr-radius-3xl: 2rem;
  --ttr-background: oklch(0.992 0.004 300);
  --ttr-foreground: oklch(0.24 0.05 295);
  --ttr-primary: oklch(0.42 0.13 300);
  --ttr-primary-glow: oklch(0.55 0.16 305);
  --ttr-primary-soft: oklch(0.94 0.03 305);
  --ttr-cta: oklch(0.46 0.16 305);
  --ttr-raspberry: #e55d63;
  --ttr-raspberry-soft: #fdecee;
  --ttr-muted-foreground: oklch(0.4 0.03 295);
  --ttr-border: oklch(0.85 0.02 300);
  --ttr-input: oklch(0.88 0.015 300);
  --ttr-ring: oklch(0.42 0.13 300 / 0.25);
  --ttr-shadow-soft: 0 4px 12px -4px oklch(0.42 0.13 300 / 0.12);
  --ttr-shadow-card: 0 1px 2px oklch(0.42 0.13 300 / 0.04), 0 8px 24px -12px oklch(0.42 0.13 300 / 0.15);
  --ttr-hero-wash: linear-gradient(135deg, oklch(0.93 0.04 320) 0%, oklch(0.9 0.05 300) 45%, oklch(0.88 0.04 280) 100%);
}

/* Layout Grid */
.tuteer-form-layout {
    display: grid;
    gap: 1.25rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tuteer-hero-wash {
    background-image: var(--ttr-hero-wash) !important;
    padding: 2rem 1.5rem !important;
    border-radius: 1.25rem !important;
    margin: 1.5rem 0 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

@media (max-width: 767px) {
    .tuteer-hero-wash {
        padding: 1.5rem 1rem !important;
        border-radius: 1rem !important;
        margin: 1rem 0 !important;
    }
}

@media (min-width: 1024px) {
    .tuteer-form-layout {
        grid-template-columns: 1fr 380px;
        align-items: start;
    }

    .tuteer-form-layout--simple {
        grid-template-columns: minmax(0, 1fr) 340px !important;
    }
}

/* Form Container Styling */
.tuteer-form-main {
    max-width: 100%;
}

.tuteer-form-layout--simple {
    max-width: 1160px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.tuteer-form-main--simple {
    max-width: 100%;
}

.tuteer-form-layout--simple .tuteer-form-sidebar {
    margin-top: 0 !important;
}

.tuteer-form-header h1,
.tuteer-form-header h2 {
    font-size: 2.25rem;
    line-height: 1.1;
    color: var(--ttr-primary);
    font-weight: 800 !important;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .tuteer-form-header h1,
    .tuteer-form-header h2 {
        font-size: 2.75rem;
        line-height: 1.1;
    }
}

.tuteer-form-header p {
    color: var(--ttr-foreground);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.tuteer-form-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tuteer-badge-24h {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 9999px;
    background-color: white;
    padding: 0.2rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ttr-primary);
    border: 1px solid var(--ttr-border);
    margin-bottom: 0 !important;
}

.tuteer-required-info {
    font-size: 0.75rem;
    color: var(--ttr-muted-foreground);
    font-style: italic;
}

/* Gravity Forms Overrides */
.tuteer-form .gform_heading {
    display: none !important; /* We use custom header injected via JS */
}

.tuteer-form .gform_wrapper {
    margin: 0 !important;
}

.tuteer-form .gform_fields {
    display: grid !important;
    gap: 1rem !important;
}

.tuteer-form.tuteer-form--generic .gform_fields {
    grid-template-columns: minmax(0, 1fr) !important;
}

.tuteer-form.tuteer-form--generic .gfield {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
}

.tuteer-form .gfield {
    margin-bottom: 0 !important;
    padding-right: 0 !important;
}

.tuteer-form .gfield_label {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--ttr-foreground) !important;
    margin-bottom: 0.25rem !important;
}

.tuteer-form .gfield_required {
    color: var(--ttr-raspberry) !important;
    font-size: 0.625rem !important;
    text-transform: uppercase;
    font-weight: 700;
    margin-left: 0.25rem;
}

.tuteer-form .gfield_optional {
    color: var(--ttr-muted-foreground) !important;
    font-size: 0.625rem !important;
    text-transform: uppercase;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Inputs, Selects, Textareas */
.tuteer-form input[type="text"],
.tuteer-form input[type="email"],
.tuteer-form input[type="tel"],
.tuteer-form select,
.tuteer-form textarea {
    width: 100% !important;
    background-color: white !important;
    border: 1px solid var(--ttr-input) !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    color: var(--ttr-foreground) !important;
    box-shadow: none !important;
}

.tuteer-form input[type="text"],
.tuteer-form input[type="email"],
.tuteer-form select {
    border-radius: 9999px !important;
    padding: 0.75rem 1.25rem !important;
    height: auto !important;
}

.tuteer-form input[type="tel"] {
    border-radius: 9999px !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    padding-right: 1.25rem !important;
    /* padding-left is set dynamically by intl-tel-input inline styles, do not use !important here */
    height: auto !important;
}

/* intl-tel-input integration */
.tuteer-form .iti {
    display: block !important;
    width: 100% !important;
}

.tuteer-form .iti__selected-dial-code {
    font-size: 0.875rem !important;
    color: var(--ttr-foreground) !important;
    margin-left: 6px !important;
}

.tuteer-form .iti__selected-flag {
    padding-left: 14px !important;
    padding-right: 8px !important;
}

.tuteer-form .iti__flag-container {
    padding-left: 10px !important;
}

.tuteer-form .iti__search-input,
.tuteer-form .iti__search-input:focus {
    border: none !important;
    box-shadow: none !important;
    border-radius: 9999px !important;
}

.tuteer-form textarea {
    border-radius: 15px !important;
    padding: 0.75rem 1.25rem !important;
    min-height: 40px !important;
    height: 40px;
    resize: none !important;
    line-height: 1.5 !important;
    overflow-y: hidden !important;
    transition: height 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.tuteer-form input:focus,
.tuteer-form select:focus,
.tuteer-form textarea:focus {
    border-color: var(--ttr-primary) !important;
    box-shadow: 0 0 0 2px var(--ttr-ring) !important;
}

/* Selection Sets */
.tuteer-selection-set {
    border-radius: 1rem !important;
    border: 1px solid var(--ttr-border) !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
    box-shadow: var(--ttr-shadow-soft) !important;
}

.tuteer-selection-set__header {
    margin-bottom: 0.75rem !important;
    border-bottom: 1px solid var(--ttr-border) !important;
}

.tuteer-selection-set__title {
    font-family: var(--font-display) !important;
    color: var(--ttr-primary) !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
}

.tuteer-selection-set__fields {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
}

@media (max-width: 640px) {
    .tuteer-selection-set__fields {
        grid-template-columns: 1fr !important;
    }
}

/* Tutor Select spans full width within set if it's there */
.tuteer-field-tutor {
    grid-column: span 2 !important;
}

@media (max-width: 640px) {
    .tuteer-field-tutor {
        grid-column: span 1 !important;
    }
}

/* Add Button */
.tuteer-add-btn {
    background-color: transparent !important;
    border: 1px solid #917cb7 !important;
    color: #917cb7 !important;
    padding: 13px 50px !important;
    border-radius: 10em !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    transition: all 200ms cubic-bezier(0.785, 0.135, 0.15, 0.86) !important;
    display: inline-block !important;
    margin: 1.5rem 0 0.5rem 0 !important;
    line-height: 1.2 !important;
}

.tuteer-add-btn:hover {
    background-color: #917cb7 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Submit Button */
.tuteer-form .gform_footer,
.gform_wrapper .gform_footer,
.wpcf7-submit-container,
.wpforms-submit-container,
.wpcf7 .wpcf7-form-control-wrap[class*="submit"] {
    padding: 0 !important;
    margin-top: 1.5rem !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    clear: both !important;
}

.tuteer-form button[type="submit"],
.tuteer-form input[type="submit"],
.gform_wrapper button[type="submit"],
.gform_wrapper input[type="submit"],
.gform_button,
.wpcf7-submit,
.wpforms-submit,
.tuteer-submit,
.tuteer-cta-form-submit-pl,
.tuteer-cta-form-submit-en {
    background-color: var(--ttr-cta) !important;
    background-image: none !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    border-radius: 9999px !important;
    border: none !important;
    outline: none !important;
    appearance: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 20px -8px oklch(0.46 0.16 305 / 0.5) !important;
    text-shadow: none !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    min-width: 220px !important;
    width: auto !important;
    height: 60px !important;
    padding: 0 4rem 0 2rem !important;
    text-transform: uppercase !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    line-height: 1 !important;
    position: relative !important;
    margin: 0 auto !important;
}

/* Force clean interior for button elements and remove any theme-added frames */
.tuteer-submit span,
.gform_button span,
.wpcf7-submit span,
.wpforms-submit span,
.tuteer-submit::before,
.tuteer-submit::after,
.gform_button::before,
.gform_button::after {
    box-shadow: none !important;
    text-shadow: none !important;
}

.tuteer-submit span,
.gform_button span,
.wpcf7-submit span,
.wpforms-submit span {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* Ensure btn_head arrow icon is preserved but clean */
.btn_head::before {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.tuteer-form input[type="submit"]:hover,
.gform_wrapper input[type="submit"]:hover,
.gform_button:hover,
.wpcf7-submit:hover,
.wpforms-submit:hover,
.tuteer-cta-form-submit-pl:hover,
.tuteer-cta-form-submit-en:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 28px -10px oklch(0.46 0.16 305 / 0.6) !important;
    color: white !important;
    background-color: var(--ttr-cta) !important;
}

.tuteer-form input[type="submit"]:disabled,
.gform_wrapper input[type="submit"]:disabled,
.gform_button:disabled,
.wpcf7-submit:disabled,
.wpforms-submit:disabled,
.tuteer-cta-form-submit-pl:disabled,
.tuteer-cta-form-submit-en:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    transform: none !important;
    background-color: oklch(0.7 0.02 300) !important;
    box-shadow: none !important;
    filter: grayscale(1) !important;
}

/* Submission Loading State */
.tuteer-form-submitting .gform_footer,
.tuteer-form-submitting .wpcf7-submit-container,
.tuteer-form-submitting .wpforms-submit-container,
.tuteer-form-submitting .wpcf7 .wpcf7-form-control-wrap[class*="submit"] {
    position: relative;
    display: grid !important;
    place-items: center !important;
}

.tuteer-form-submitting .gform_footer > *,
.tuteer-form-submitting .wpcf7-submit-container > *,
.tuteer-form-submitting .wpforms-submit-container > *,
.tuteer-form-submitting .wpcf7 .wpcf7-form-control-wrap[class*="submit"] > * {
    grid-area: 1 / 1 !important;
}

.tuteer-form-submitting .gform_footer::after,
.tuteer-form-submitting .wpcf7-submit-container::after,
.tuteer-form-submitting .wpforms-submit-container::after,
.tuteer-form-submitting .wpcf7 .wpcf7-form-control-wrap[class*="submit"]::after {
    content: "";
    grid-area: 1 / 1 !important;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ttr-spin 0.6s linear infinite;
    z-index: 10;
    pointer-events: none;
    position: relative; /* Changed from absolute to work with grid-area */
}

.tuteer-form-submitting input[type="submit"],
.gform_wrapper.tuteer-form-submitting input[type="submit"],
.tuteer-form input[type="submit"].tuteer-button-loading,
.gform_button.tuteer-button-loading,
.wpcf7-submit.tuteer-button-loading,
.wpforms-submit.tuteer-button-loading,
.tuteer-cta-form-submit-pl.tuteer-button-loading,
.tuteer-cta-form-submit-en.tuteer-button-loading {
    color: transparent !important;
    background-color: var(--ttr-cta) !important;
    opacity: 0.8 !important;
    filter: none !important;
    cursor: wait !important;
}

/* Hide native Gravity Forms, CF7 and WPForms spinners */
.tuteer-form .gform_ajax_spinner,
.gform_wrapper .gform_ajax_spinner,
.wpcf7-spinner,
.wpforms-spinner {
    display: none !important;
}

/* Mobile Sticky Footer */
@media (max-width: 767px) {
    .tuteer-form .gform_footer,
    .tuteer-form-wrapper .gform_footer,
    .gform_wrapper .gform_footer,
    .tuteer-form .wpcf7-submit-container,
    .tuteer-form .wpforms-submit-container,
    .gform_wrapper.tuteer-form-wrapper .gform_footer,
    .tuteer-form-wrapper .wpcf7-submit-container,
    .tuteer-form-wrapper .wpforms-submit-container {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 100000 !important; /* Extremely high z-index */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        padding: 1rem !important;
        margin: 0 !important;
        border-top: 1px solid var(--ttr-border);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .tuteer-form-submitting.tuteer-form .gform_footer,
    .tuteer-form-submitting.tuteer-form .wpcf7-submit-container,
    .tuteer-form-submitting.tuteer-form .wpforms-submit-container,
    .tuteer-form-submitting.tuteer-form-wrapper .gform_footer {
        display: grid !important;
        place-items: center !important;
    }

    .tuteer-form input[type="submit"],
    .gform_wrapper input[type="submit"],
    .gform_button,
    .tuteer-cta-form-submit-pl,
    .tuteer-cta-form-submit-en {
        width: 100% !important;
        max-width: 320px;
    }

    .tuteer-form-layout .tuteer-form-main {
        padding-bottom: 120px !important;
    }

    /* Generic Form Mobile Improvements */
    .tuteer-form.tuteer-form--generic .gform_fields {
        display: block !important;
        grid-template-columns: none !important;
    }

    .tuteer-form.tuteer-form--generic .gfield,
    .tuteer-form.tuteer-form--generic .ginput_container,
    .tuteer-form.tuteer-form--generic .gfield_list_group,
    .tuteer-form.tuteer-form--generic .wpforms-field,
    .tuteer-form.tuteer-form--generic .wpcf7-form-control-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
        clear: both !important;
        margin-bottom: 1.5rem !important;
        display: block !important;
    }

    .tuteer-form.tuteer-form--generic .gfield:last-child {
        margin-bottom: 0 !important;
    }

    .tuteer-form.tuteer-form--generic .ginput_container input:not([type="checkbox"]):not([type="radio"]),
    .tuteer-form.tuteer-form--generic .ginput_container select,
    .tuteer-form.tuteer-form--generic .ginput_container textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Support for complex fields (like Name) in legacy GF markup */
    .tuteer-form.tuteer-form--generic .ginput_complex span {
        width: 100% !important;
        display: block !important;
        margin-right: 0 !important;
        margin-bottom: 0.75rem !important;
    }

    .tuteer-form.tuteer-form--generic .ginput_complex span input {
        width: 100% !important;
    }

    /* Ensure Phone Input is 100% */
    .tuteer-form .iti,
    .tuteer-form-wrapper .iti {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    /* Message for disabled button - mobile */
    .tuteer-submit-help {
        display: none;
    }
}

/* Message for disabled button - general */
.tuteer-submit-help {
    font-size: 0.75rem;
    color: var(--ttr-raspberry);
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 500;
    display: none;
    width: 100%;
    animation: ttr-shake 0.4s ease-in-out;
}

@keyframes ttr-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.tuteer-submit-help.is-visible {
    display: block;
}

.tuteer-form .gform_footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sidebar Styles */
.tuteer-form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .tuteer-form-sidebar {
       /* margin-top: 11.5rem;*/
    }
}

.tuteer-sidebar-card {
    border-radius: 1rem;
    border: 1px solid var(--ttr-border);
    background-color: white;
    padding: 1.19rem;
    box-shadow: var(--ttr-shadow-card);
}

.tuteer-sidebar-card--raspberry {
    border-color: rgba(229, 93, 99, 0.2);
    background-color: #fff9fa;
}

.tuteer-sidebar-card h2, 
.tuteer-sidebar-card h3 {
    font-family: var(--font-display);
    color: var(--ttr-primary);
    margin-bottom: 0.375rem;
}

.tuteer-sidebar-card h2 { font-size: 1.375rem; }
.tuteer-sidebar-card h3 { font-size: 1.125rem; }

.tuteer-sidebar-card p {
    font-size: 0.875rem;
    color: var(--ttr-muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tuteer-contact-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tuteer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none !important;
}

.tuteer-contact-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 9999px;
    background-color: rgba(67, 43, 85, 0.1); /* Primary-ish */
    color: var(--ttr-primary);
}

.tuteer-contact-item-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ttr-muted-foreground);
    margin: 0;
}

.tuteer-contact-item-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ttr-foreground);
    margin: 0.125rem 0 0 0;
}

.tuteer-why-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tuteer-why-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ttr-muted-foreground);
}

.tuteer-why-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
    width: 1rem;
    height: 1rem;
    color: var(--ttr-raspberry);
}

/* Pulse animation for CTA */
@keyframes ttr-pulse {
  0%, 100% { box-shadow: 0 18px 35px -18px rgba(229, 93, 99, 0.85), 0 0 0 0 rgba(229, 93, 99, 0.34); }
  50% { box-shadow: 0 18px 35px -18px rgba(229, 93, 99, 0.85), 0 0 0 12px rgba(229, 93, 99, 0); }
}

.tuteer-cta-pulse {
    animation: ttr-pulse 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite !important;
}

/* Consent Card */
.tuteer-field-consent .ginput_container_consent {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 1rem;
    border: 1px solid var(--ttr-border);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.tuteer-field-consent .ginput_container_consent:hover {
    border-color: var(--ttr-primary);
    background-color: white;
}

.tuteer-field-consent input[type="checkbox"] {
    margin-top: 0.125rem !important;
    accent-color: var(--ttr-primary);
}

.tuteer-field-consent label {
    font-size: 0.75rem !important;
    color: var(--ttr-muted-foreground) !important;
    font-weight: 400 !important;
    line-height: 2.3 !important;
}

.tuteer-field-consent label a {
    color: var(--ttr-primary) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.tuteer-field-consent label a:hover {
    color: var(--ttr-cta) !important;
}

.tuteer-field-consent .gfield_description {
    display: none !important; /* Managed by label in design */
}

/* Selected Tutor Box & Warnings */
.tuteer-selected-tutor-box,
.tuteer-form-warning {
    border-radius: 1rem !important;
    border: 1px solid rgba(229, 93, 99, 0.4) !important;
    background-color: white !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 1rem !important;
    color: var(--ttr-foreground) !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    box-shadow: var(--ttr-shadow-soft) !important;
}

.tuteer-selected-tutor-box p {
    margin: 0.25rem 0 0 0 !important;
    font-size: 0.8125rem !important;
    color: var(--ttr-muted-foreground) !important;
    line-height: 1.3 !important;
}

.tuteer-selected-tutor-box strong {
    color: var(--ttr-primary) !important;
    font-weight: 700 !important;
}

/* Grid for Name and Email */
@media (min-width: 640px) {
    .tuteer-form.tuteer-form--generic .gform_fields {
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    }

    .tuteer-form.tuteer-form--generic .gfield {
        grid-column: span 12 !important;
    }

    .tuteer-form.tuteer-form--generic .gfield.gfield--width-full {
        grid-column: span 12 !important;
    }

    .tuteer-form.tuteer-form--generic .gfield.gfield--width-half,
    .tuteer-form.tuteer-form--generic .gfield.gfield--width-six-twelfths {
        grid-column: span 6 !important;
    }

    .polowa-6{
        grid-column: span 6 !important;
    }

    .tuteer-form.tuteer-form--generic .gfield.gfield--width-third,
    .tuteer-form.tuteer-form--generic .gfield.gfield--width-one-third {
        grid-column: span 4 !important;
    }

    .tuteer-form.tuteer-form--generic .gfield.gfield--width-quarter,
    .tuteer-form.tuteer-form--generic .gfield.gfield--width-one-quarter {
        grid-column: span 3 !important;
    }

    .tuteer-form.tuteer-form--generic .gfield.gfield--width-five-twelfths {
        grid-column: span 5 !important;
    }

    .tuteer-form.tuteer-form--generic .gfield.gfield--width-seven-twelfths {
        grid-column: span 7 !important;
    }

    .tuteer-form.tuteer-form--generic .gfield.gfield--width-two-thirds {
        grid-column: span 8 !important;
    }

    .tuteer-form.tuteer-form--generic .gfield.gfield--width-three-quarter,
    .tuteer-form.tuteer-form--generic .gfield.gfield--width-three-quarters {
        grid-column: span 9 !important;
    }

    .tuteer-form.tuteer-form-tutorials .tuteer-field-name,
    .tuteer-form.tuteer-form-tutorials .tuteer-field-email {
        grid-column: span 1 !important;
    }

    .tuteer-form.tuteer-form-tutorials .gform_fields {
        grid-template-columns: 1fr 1fr !important;
    }

    .tuteer-form.tuteer-form-tutorials .tuteer-field-phone,
    .tuteer-form.tuteer-form-tutorials .tuteer-field-goal,
    .tuteer-form.tuteer-form-tutorials .tuteer-field-availability,
    .tuteer-form.tuteer-form-tutorials .tuteer-field-message,
    .tuteer-form.tuteer-form-tutorials .tuteer-field-consent,
    .tuteer-form.tuteer-form-tutorials .tuteer-selection-sets-json,
    .tuteer-form.tuteer-form-tutorials .tuteer-selection-sets,
    .tuteer-form.tuteer-form-tutorials .tuteer-add-selection {
        grid-column: span 2 !important;
    }

    .tuteer-form.tuteer-form-tutorials .tuteer-add-selection {
        text-align: center;
        margin-top: -2rem;
    }

    .tuteer-form.tuteer-form-tutorials .tuteer-add-selection-limit {
        font-size: 0.75rem;
        color: var(--ttr-muted-foreground);
        margin-top: 0.25rem;
    }

    /* Hidden fields */
    .tuteer-form.tuteer-form-tutorials .tuteer-field-phone-full,
    .tuteer-form.tuteer-form-tutorials .tuteer-field-phone-country,
    .tuteer-form.tuteer-form-tutorials .tuteer-field-phone-dial-code,
    .tuteer-form.tuteer-form-tutorials .tuteer-field-selection-sets-json {
        display: none !important;
    }
}

/* Error Messages & Validation */
.tuteer-form .gfield_description.validation_message {
    display: none !important;
}

.tuteer-field-error-msg {
    color: var(--ttr-raspberry) !important;
    font-size: 0.8125rem !important;
    margin-top: 0.375rem !important;
    margin-bottom: 0.75rem !important;
    padding-left: 0.25rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    display: none;
    animation: ttr-fade-in 0.2s ease-out;
}

@keyframes ttr-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.tuteer-form .gfield.has-error input,
.tuteer-form .gfield.has-error select,
.tuteer-form .gfield.has-error textarea {
    border-color: var(--ttr-raspberry) !important;
    background-color: #fff9fa !important;
}

.tuteer-form .gfield.has-error .tuteer-field-error-msg {
    display: block;
}

.tuteer-form .gfield.has-error {
    margin-bottom: 0.5rem !important;
}

/* Success Confirmation */
.tuteer-form .gfield.has-success input,
.tuteer-form .gfield.has-success select,
.tuteer-form .gfield.has-success textarea {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

.tuteer-form .gfield.has-success input,
.tuteer-form .gfield.has-success select,
.tuteer-form .gfield.has-success textarea,
.tuteer-form .gfield.has-success input[type="tel"] {
    padding-right: 3.5rem !important;
}

.tuteer-form .gfield.has-success .ginput_container {
    position: relative;
}

.tuteer-form .gfield.has-success .ginput_container::after {
    content: '';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 5;
    animation: ttr-pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tuteer-form .gfield.has-success.tuteer-field-message .ginput_container::after {
    top: 0.875rem;
    transform: none;
}

/* Consent field success tweak */
.tuteer-form .tuteer-field-consent.has-success .ginput_container_consent {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

.tuteer-form .tuteer-field-consent.has-success .ginput_container::after {
    display: none !important;
}

@keyframes ttr-pop-in {
    from { opacity: 0; transform: translateY(-50%) scale(0.5); }
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}

@keyframes ttr-pop-in-static {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.tuteer-form .gfield.has-success.tuteer-field-message .ginput_container::after {
    animation-name: ttr-pop-in-static;
}

/* Loading state for select fields */
.tuteer-form .gfield.tuteer-is-loading-container .ginput_container {
    position: relative;
}

.tuteer-form .gfield.tuteer-is-loading-container .ginput_container::after {
    content: '';
    position: absolute;
    right: 2rem;
    top: 50%;
    margin-top: -0.5625rem;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid rgba(229, 93, 99, 0.2);
    border-top-color: var(--ttr-raspberry);
    border-radius: 50%;
    animation: ttr-spin 0.6s linear infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes ttr-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tuteer-selection-set__error {
    color: #d63638 !important;
    font-size: 0.8125rem !important;
    margin-top: 0.375rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.tuteer-selection-set__error {
    background-color: #fff9fa !important;
    border: 1px solid rgba(214, 54, 56, 0.2) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.5rem !important;
}

/* --- Main Menu Highlight (Umów się) --- */

/* Target by IDs from tuteer.css and by common link patterns */

.navbar-nav li:not(.wpml-ls-item):not(.menu-item-language) a[href*="/umow-sie-na-zajecia/"],
.navbar-nav li:not(.wpml-ls-item):not(.menu-item-language) a[href*="/make-an-appointment/"],
.tuteer-menu-cta > a {
    background-color: var(--ttr-raspberry) !important;
    color: white !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 18px 30px !important;
    margin-top: 2px !important;
    margin-left: 0px !important;
    box-shadow: 0 18px 35px -18px rgba(229, 93, 99, 0.85) !important;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    animation: ttr-pulse 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}


.menu-item-870,
.menu-item-69
{
    animation: ttr-pulse 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite !important;
    border-radius: 9999px !important;
}




/* Hover effect */
.menu-item-870 > a:hover, 
.menu-item-69 > a:hover,
.navbar-nav li:not(.wpml-ls-item):not(.menu-item-language) a[href*="/umow-sie-na-zajecia/"]:hover,
.navbar-nav li:not(.wpml-ls-item):not(.menu-item-language) a[href*="/make-an-appointment/"]:hover,
.tuteer-menu-cta > a:hover {
    background-color: var(--ttr-raspberry) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(229, 93, 99, 0.45) !important;
    color: white !important;
    filter: brightness(1.1) !important;
    text-decoration: none !important;
}

/* Fix for mobile menu - make it stand out but fit the stack */
@media (max-width: 767px) {
    .menu-item-870, .menu-item-69, .tuteer-menu-cta {
        text-align: center;
        margin: 10px 0;
    }
    .menu-item-870 > a, 
    .menu-item-69 > a,
    .navbar-nav li:not(.wpml-ls-item):not(.menu-item-language) a[href*="/umow-sie-na-zajecia/"],
    .navbar-nav li:not(.wpml-ls-item):not(.menu-item-language) a[href*="/make-an-appointment/"],
    .tuteer-menu-cta > a {
        margin: 0 !important;
        width: auto !important;
        min-width: 200px;
    }
}

/* Remove old icons added via :before in tuteer.css */
.menu-item-870 > a:before,
.menu-item-69 > a:before {
    display: none !important;
}

/* --- Sticky Mobile CTA --- */
.tuteer-sticky-mobile-cta {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    justify-content: center !important;
    padding: 1rem !important;
    padding-bottom: max(1rem, env(safe-area-inset-bottom)) !important;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease !important;
    pointer-events: none !important;
}

@media (min-width: 768px) {
    .tuteer-sticky-mobile-cta {
        display: none !important;
    }
}

.tuteer-sticky-mobile-cta.is-hidden {
    transform: translateY(100%) !important;
    opacity: 0 !important;
}

.tuteer-sticky-mobile-cta-button {
    pointer-events: auto !important;
    width: 100% !important;
    max-width: 240px !important;
    background-color: var(--ttr-raspberry) !important;
    color: white !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 18px 35px -18px rgba(229, 93, 99, 0.85) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    animation: ttr-pulse 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite !important;
    cursor: pointer !important;
}

.tuteer-sticky-mobile-cta-button:active {
    transform: scale(0.98) !important;
}

.tuteer-sticky-mobile-cta-button i {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* --- Breadcrumbs (Okruszki) --- */
.tuteer-breadcrumbs-wrapper {
    margin-top: 100px;
    padding: 1.5rem 0 0.5rem;
    font-size: 0.8125rem;
    background-color: transparent;
    z-index: 10;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 991px) {
    .tuteer-breadcrumbs-wrapper {
        margin-top: 85px;
    }
}

@media (max-width: 767px) {
    .page-template-page-content .tuteer-breadcrumbs-wrapper {
        margin-top: 9rem !important;
    }
}

.rank-math-breadcrumb {
    font-family: 'Inter', sans-serif !important;
}

.rank-math-breadcrumb p {
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.25rem !important;
    color: var(--ttr-muted-foreground) !important;
    line-height: 1.2 !important;
}

.rank-math-breadcrumb a {
    color: var(--ttr-muted-foreground) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.rank-math-breadcrumb a:hover {
    color: var(--ttr-primary) !important;
}

.rank-math-breadcrumb span {
    display: flex !important;
    align-items: center !important;
}

.rank-math-breadcrumb .separator {
    color: #cbd5e1 !important;
    font-size: 0.625rem !important;
    margin: 0 0.25rem !important;
}

.rank-math-breadcrumb .last {
    color: var(--ttr-foreground) !important;
    font-weight: 600 !important;
}


.iti__selected-country, .iti__selected-country-primary{
    background: transparent !important;
    border: none !important;
}

.iti__selected-country:hover, .iti__selected-country-primary:hover{
    background: transparent !important;
    border: none !important;
}

.iti__search-input{
    display: none !important;
}