/* ==========================================================================
   Influencer Form - Typeform Style
   WellnessCore Design Tokens:
   - Main: #D15E14 (orange)
   - Copy: #341F25 (dark brown)
   - Secondary: #EFF3F2 (light grey)
   - Font Title: Signika
   - Font Copy: Nunito
   ========================================================================== */

.page-influencer main {
    min-height: calc(100vh - var(--header-h, 130px));
}

/* Container */
.influencer-form {
    position: relative;
    min-height: calc(100vh - var(--header-h, 130px));
    overflow: hidden;
}

.influencer-container {
    max-width: 750px;
    width: 88%;
    margin: 0 auto;
    position: relative;
    min-height: calc(100vh - var(--header-h, 130px));
}

/* Progress Bar - positioned dynamically below header via JS */
.typeform-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #EFF3F2;
    z-index: 50;
    transition: top 0.3s ease;
}

.typeform-progress-bar {
    height: 100%;
    background: #D15E14;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.typeform-progress-text {
    position: fixed;
    top: 12px;
    right: 30px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #D15E14;
    z-index: 50;
    transition: top 0.3s ease;
}

/* Slides */
.typeform-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: calc(100vh - var(--header-h, 130px));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s 0.5s;
    pointer-events: none;
}

.typeform-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s 0s;
    pointer-events: auto;
    position: relative;
}

.typeform-slide.slide-out-up {
    opacity: 0;
    transform: translateY(-30px);
}

.typeform-slide-inner {
    width: 100%;
    padding: 60px 0;
}

/* Intro Slide */
.typeform-slide[data-slide="intro"] .typeform-slide-inner {
    text-align: center;
}

.typeform-slide[data-slide="intro"] h1 {
    font-family: 'Signika', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 110%;
    color: #341F25;
    margin-bottom: 25px;
}

.typeform-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    line-height: 160%;
    color: #53565A;
    margin-bottom: 50px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.typeform-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    background: #D15E14;
    color: #fff;
    font-family: 'Signika', sans-serif;
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    line-height: 1;
}

.typeform-btn:hover {
    background: #341F25;
    color: #fff;
}

.typeform-btn:disabled {
    background: #d2d2d2;
    cursor: not-allowed;
}

.typeform-btn:disabled:hover {
    background: #d2d2d2;
}

.typeform-btn svg {
    transition: transform 0.2s ease;
}

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

.typeform-btn-start {
    font-size: 20px;
    padding: 16px 48px;
}

/* Question Header */
.typeform-question-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 35px;
}

.typeform-question-number {
    font-family: 'Signika', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #D15E14;
    flex-shrink: 0;
    margin-top: 2px;
}

.typeform-question-arrow {
    color: #D15E14;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 4px;
}

.typeform-question-label {
    font-family: 'Signika', sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 135%;
    color: #341F25;
}

.typeform-required {
    color: #D15E14;
    margin-left: 3px;
}

/* Text Inputs */
.typeform-input-wrapper {
    margin-bottom: 30px;
}

.typeform-text-input {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #d2d2d2;
    transition: border-color 0.25s ease;
}

.typeform-text-input:focus-within {
    border-color: #D15E14;
}

.typeform-prefix {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    color: #888;
    padding-right: 4px;
    flex-shrink: 0;
}

.typeform-field {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    color: #341F25;
    padding: 12px 0;
    line-height: 1.4;
}

.typeform-field::placeholder {
    color: #c0c0c0;
}

.typeform-textarea {
    border: none;
    border-bottom: 2px solid #d2d2d2;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.25s ease;
}

.typeform-textarea:focus {
    border-color: #D15E14;
    outline: none;
}

/* Options (Select / Multi-select) */
.typeform-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.typeform-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    color: #341F25;
}

.typeform-option:hover {
    border-color: #D15E14;
    background: rgba(209, 94, 20, 0.04);
}

.typeform-option.selected {
    border-color: #D15E14;
    background: #D15E14;
    color: #fff;
}

.typeform-option.selected .typeform-option-key {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.typeform-option-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #d2d2d2;
    border-radius: 5px;
    font-family: 'Signika', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.typeform-option-label {
    flex: 1;
}

.typeform-hint {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: #888;
    margin-top: 12px;
    font-style: italic;
}

/* Navigation */
.typeform-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.typeform-enter-hint {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: #b0b0b0;
}

.typeform-enter-hint strong {
    color: #888;
}

/* Back Button */
.typeform-back {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #EFF3F2;
    border-radius: 25px;
    background: #fff;
    color: #D15E14;
    font-family: 'Signika', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.typeform-back:hover {
    border-color: #D15E14;
    background: #FDF5F0;
}

/* Terms & Submit */
.typeform-terms {
    margin-bottom: 40px;
}

.typeform-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #53565A;
}

.typeform-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #d2d2d2;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 3px;
}

.typeform-checkbox:checked {
    background: #D15E14;
    border-color: #D15E14;
    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='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
}

.typeform-terms-text a {
    color: #D15E14;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.typeform-terms-text a:hover {
    color: #341F25;
}

.typeform-terms-text p {
    display: inline;
    margin: 0;
}

/* Success */
.typeform-slide[data-slide="success"] .typeform-slide-inner {
    text-align: center;
}

.typeform-success-icon {
    margin-bottom: 30px;
}

.typeform-success-icon svg {
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.typeform-slide[data-slide="success"] h2 {
    font-family: 'Signika', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 140%;
    color: #341F25;
    max-width: 500px;
    margin: 0 auto;
}

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

/* Error state */
.typeform-field.error,
.typeform-textarea.error {
    border-color: #FB6666;
}

.typeform-text-input.error {
    border-color: #FB6666;
}

.typeform-error-message {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: #FB6666;
    margin-top: 8px;
}

/* Loading state */
.typeform-btn-submit.loading {
    display: none !important;
}

.typeform-spinner {
    display: none;
    width: 36px;
    height: 36px;
    border: 3px solid #EFF3F2;
    border-top-color: #D15E14;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 10px 0;
}

.typeform-spinner.active {
    display: block;
}

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

/* ==========================================================================
   SIMPLE LAYOUT - content left, form right
   ========================================================================== */

.influencer-simple {
    min-height: auto;
    overflow: visible;
}

.influencer-simple-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 80px 0;
}

.influencer-simple-content {
    width: 100%;
    max-width: 40%;
    position: sticky;
    top: 150px;
}

.influencer-simple-content h1 {
    font-family: 'Signika', sans-serif;
    font-weight: 600;
    font-size: 38px;
    line-height: 120%;
    color: #341F25;
    margin-bottom: 20px;
}

.influencer-simple-content .typeform-subtitle {
    margin-bottom: 25px;
    max-width: none;
}

.influencer-simple-body {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 170%;
    color: #53565A;
}

.influencer-simple-body p {
    margin-bottom: 15px;
}

.influencer-simple-body a {
    color: #D15E14;
    text-decoration: underline;
}

.influencer-simple-form {
    width: 100%;
    max-width: 55%;
}

.simple-field-group {
    margin-bottom: 28px;
}

.simple-label {
    display: block;
    font-family: 'Signika', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #341F25;
    margin-bottom: 8px;
}

/* In simple layout: options are horizontal pills */
.influencer-simple .typeform-options {
    flex-direction: row;
    flex-wrap: wrap;
}

.influencer-simple .typeform-option {
    width: auto;
    padding: 10px 18px;
    font-size: 15px;
}

/* In simple layout: text inputs have a border */
.influencer-simple .typeform-text-input {
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    padding: 0 14px;
    border-bottom-width: 1px;
}

.influencer-simple .typeform-text-input:focus-within {
    border-color: #D15E14;
}

.influencer-simple .typeform-textarea {
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    padding: 12px 14px;
    border-bottom-width: 1px;
}

.influencer-simple .typeform-textarea:focus {
    border-color: #D15E14;
}

.influencer-simple .typeform-field {
    font-size: 16px;
    padding: 10px 0;
}

/* Success in simple layout */
.influencer-simple-success {
    text-align: center;
    padding: 40px 0;
}

.influencer-simple-success h2 {
    font-family: 'Signika', sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 140%;
    color: #341F25;
    margin-top: 20px;
}

/* Simple layout responsive */
@media screen and (max-width: 768px) {
    .influencer-simple-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 40px 0;
    }

    .influencer-simple-content,
    .influencer-simple-form {
        max-width: 100%;
    }

    .influencer-simple-content {
        position: static;
    }

    .influencer-simple-content h1 {
        font-size: 28px;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .typeform-slide[data-slide="intro"] h1 {
        font-size: 32px;
    }

    .typeform-subtitle {
        font-size: 17px;
    }

    .typeform-question-label {
        font-size: 21px;
    }

    .typeform-field,
    .typeform-prefix {
        font-size: 18px;
    }

    .typeform-option {
        font-size: 16px;
        padding: 12px 16px;
    }

    .typeform-progress-text {
        right: 15px;
        top: 10px;
        font-size: 12px;
    }

    .typeform-back {
        bottom: 15px;
        left: 15px;
    }

    .typeform-enter-hint {
        display: none;
    }

    .typeform-slide-inner {
        padding: 40px 0;
    }
}

@media screen and (max-width: 480px) {
    .typeform-slide[data-slide="intro"] h1 {
        font-size: 26px;
    }

    .typeform-question-label {
        font-size: 18px;
    }

    .typeform-question-header {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 25px;
    }

    .typeform-question-arrow {
        display: none;
    }

    .typeform-btn {
        width: 100%;
        justify-content: center;
    }

    .typeform-nav {
        flex-direction: column;
        align-items: stretch;
    }
}
