/* ==========================================================================
   Leadlynk / LeadHQ - Request Pricing Lead Generation System
   Primary Theme Color: #3f6fdc
   Exact Design Match to leadlynk.com.au & LeadHQ Specifications
   ========================================================================== */

:root {
    --leadlynk-primary: #3f6fdc;
    --leadlynk-primary-hover: #325ab9;
    --leadlynk-primary-light: #eff4ff;
    --leadlynk-dark: #0f172a;
    --leadlynk-gray: #64748b;
    --leadlynk-light-gray: #f8fafc;
    --leadlynk-border: #e2e8f0;
    --leadlynk-radius: 50px;
}

.leadlynk-wizard-wrapper {
    width: 100%;
    margin: 20px auto 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: var(--leadlynk-dark);
}

.leadlynk-wizard-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================================================================
   Main Form Card & Top Progress Bar
   ========================================================================== */
.leadlynk-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    overflow: visible;
    position: relative;
    padding: 0 0 36px 0;
}

.leadlynk-progress-header {
    width: 100%;
    background: #f8fafc;
    padding: 0;
    margin-bottom: 32px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
}

.leadlynk-progress-track {
    width: 100%;
    height: 5px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.leadlynk-progress-fill {
    height: 100%;
    background: var(--leadlynk-primary);
    width: 12.5%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 3px 3px 0;
}

/* ==========================================================================
   Step Panels & Animations
   ========================================================================== */
.leadlynk-step-panel {
    display: none;
    padding: 10px 40px 10px 40px;
}

.leadlynk-step-panel.active {
    display: block;
    animation: leadlynkFadeIn 0.35s ease;
}

@keyframes leadlynkFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leadlynk-panel-content {
    margin-bottom: 28px;
}

.text-center,
.text-center .leadlynk-step-heading,
.text-center .leadlynk-step-subheading,
.text-center .leadlynk-phone-highlight,
.text-center .leadlynk-resend-info {
    text-align: center !important;
}

.text-center .leadlynk-input-text,
.text-center .leadlynk-otp-inputs-wrap {
    margin: 0 auto !important;
}

/* ==========================================================================
   Headings & Subheadings
   ========================================================================== */
.leadlynk-step-heading {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--leadlynk-dark);
    margin: 0 0 8px 0;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.leadlynk-step-subheading {
    font-size: 0.98rem;
    color: var(--leadlynk-gray);
    margin: 0 0 24px 0;
    font-weight: 400;
}

/* ==========================================================================
   Input Controls (Text, Email, Phone, Numbers, Select)
   ========================================================================== */
.leadlynk-input-text,
.leadlynk-select-box {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    font-size: 0.98rem;
    border: 1.5px solid var(--leadlynk-border);
    border-radius: 12px;
    background-color: #ffffff;
    color: var(--leadlynk-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.leadlynk-input-text:focus,
.leadlynk-select-box:focus {
    border-color: var(--leadlynk-primary);
    box-shadow: 0 0 0 4px var(--leadlynk-primary-light);
}

.leadlynk-input-center {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.leadlynk-select-wrapper {
    position: relative;
    margin: 0;
}

.leadlynk-select-box {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    color: #94a3b8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' 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 18px center;
    background-size: 16px;
    padding-right: 44px;
}

.leadlynk-select-box option {
    color: var(--leadlynk-dark);
    background: #ffffff;
}

.leadlynk-select-box.has-value,
.leadlynk-select-box:focus {
    color: var(--leadlynk-dark);
}

/* ==========================================================================
   Multi-Select Tag Pill Component (Step 1)
   ========================================================================== */
.leadlynk-multiselect-wrap {
    max-width: 100%;
    margin: 0;
    position: relative;
    text-align: left;
}

.leadlynk-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: flex-start;
}

.leadlynk-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--leadlynk-primary);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(63, 111, 220, 0.25);
    animation: leadlynkPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes leadlynkPop {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.leadlynk-tag-remove {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.3);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    transition: background 0.15s ease;
}

.leadlynk-tag-remove:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--leadlynk-dark);
}

.leadlynk-dropdown-trigger {
    width: 100%;
    height: 52px;
    border: 1.5px solid var(--leadlynk-border);
    border-radius: 12px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #ffffff;
    color: #94a3b8;
    font-size: 0.98rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.leadlynk-dropdown-trigger:hover {
    border-color: var(--leadlynk-primary);
}

.leadlynk-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--leadlynk-border);
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    padding: 8px;
}

.leadlynk-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--leadlynk-dark);
    transition: background 0.15s ease;
    user-select: none;
}

.leadlynk-dropdown-item:hover {
    background: var(--leadlynk-primary-light);
    color: var(--leadlynk-primary);
}

.leadlynk-dropdown-item.selected {
    background: var(--leadlynk-primary-light);
    color: var(--leadlynk-primary);
    font-weight: 600;
}

.leadlynk-dropdown-item input[type="checkbox"] {
    display: none;
}

.leadlynk-checkmark {
    display: none;
    color: var(--leadlynk-primary);
    font-weight: 700;
}

.leadlynk-dropdown-item.selected .leadlynk-checkmark {
    display: inline-block;
}

/* ==========================================================================
   Text Button Links & Subtext Actions
   ========================================================================== */
.leadlynk-text-link {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.92rem;
    font-style: italic;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
    transition: color 0.15s ease;
}

.leadlynk-text-link:hover {
    color: var(--leadlynk-primary);
}

.leadlynk-phone-highlight {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--leadlynk-primary);
    letter-spacing: 1px;
    margin: 6px 0;
}

.leadlynk-input-phone {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 4px;
}

.leadlynk-input-otp {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 8px;
    max-width: 220px;
    margin: 0 auto;
}

/* ==========================================================================
   Action Buttons (Next, Previous, Submit)
   ========================================================================== */
.leadlynk-actions-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 24px;
}

.leadlynk-btn-primary {
    background-color: var(--leadlynk-primary);
    color: #ffffff;
    border: none;
    height: 52px;
    padding: 0 46px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 18px rgba(63, 111, 220, 0.28);
    min-width: 170px;
    outline: none;
}

.leadlynk-btn-primary:hover {
    background-color: var(--leadlynk-primary-hover);
    box-shadow: 0 8px 24px rgba(63, 111, 220, 0.38);
    transform: translateY(-1px);
}

.leadlynk-btn-primary:active {
    transform: translateY(1px);
}

.leadlynk-btn-text {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    height: 52px;
    padding: 0 32px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    outline: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.leadlynk-btn-text:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    color: var(--leadlynk-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.leadlynk-btn-text:active {
    transform: translateY(1px);
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.leadlynk-alert {
    margin: 0 auto 20px auto;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    text-align: center;
    line-height: 1.4;
}

.leadlynk-alert-danger {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
    margin: 5px 30px;
}

.leadlynk-alert-success {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #d1fae5;
}

.leadlynk-success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 12px auto;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.leadlynk-ref-badge {
    display: inline-block;
    background: #f1f5f9;
    color: var(--leadlynk-dark);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 14px;
    border-radius: 50px;
    margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .leadlynk-card {
        border-radius: 16px;
        padding-bottom: 28px;
    }

    .leadlynk-step-panel {
        padding: 0 20px;
    }

    .leadlynk-step-heading {
        font-size: 1.35rem;
    }

    .leadlynk-input-text,
    .leadlynk-select-box {
        height: 48px;
        font-size: 0.98rem;
    }

    .leadlynk-btn-primary {
        height: 48px;
        padding: 0 36px;
        font-size: 0.9rem;
    }
}