/**
 * Workshopr Auth Modal Styles
 * Standalone CSS for auth modal - can be included on any subdomain
 *
 * Usage:
 * <link rel="stylesheet" href="https://www.workshopr.io/assets/css/auth-modal.css">
 */

@import url('/design-system/platform-tokens.css');

/* CSS Variables (fallbacks if not defined by parent) */
:root {
    /* Auth modal will use --ws-auth-primary if set by app, otherwise fall back to mainsite red */
    --ws-auth-primary: var(--primary, var(--mainsite-primary));
    --ws-auth-primary-dark: var(--primary-hover, var(--mainsite-dark));
    --ws-primary-red: var(--mainsite-primary);
    --ws-primary-red-dark: var(--mainsite-dark);
    --ws-text-dark: var(--text-dark);
    --ws-text-gray: var(--text-muted);
    --ws-bg-white: var(--bg-surface);
    --ws-bg-light: var(--gray-50);
    --ws-border-light: var(--gray-200);
    --ws-radius: var(--radius-lg);
}

/* Auth Modal Overlay */
.ws-auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ws-auth-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wsAuthFadeIn 0.2s ease;
}

@keyframes wsAuthFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Modal Content Container */
.ws-auth-modal-content {
    background: var(--ws-bg-white);
    border-radius: var(--radius-2xl);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: wsAuthSlideUp 0.3s ease;
}

/* Modal Header */
.ws-auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--ws-auth-primary) 0%, var(--ws-auth-primary-dark) 100%);
}

.ws-auth-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ws-auth-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.ws-auth-modal-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.ws-auth-modal-subtitle--free {
    color: rgba(255, 255, 255, 0.85);
}

.ws-auth-modal-subtitle--pro {
    color: var(--color-warning-very-light);
}

.ws-auth-modal-subtitle--team {
    color: var(--color-info-light);
}

/* Tier-specific header backgrounds */
.ws-auth-modal-header--pro {
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
}

.ws-auth-modal-header--team {
    background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-dark) 100%);
}

.ws-auth-close-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ws-auth-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: rotate(90deg);
}

.ws-auth-close-btn:active {
    transform: rotate(90deg) scale(0.9);
}

/* Modal Body */
.ws-auth-body {
    padding: 14px 24px 16px;
}

/* Auth Forms */
.ws-auth-form {
    display: none;
}

.ws-auth-form.active {
    display: block;
    animation: wsAuthFadeIn 0.2s ease;
}

/* Form Groups */
.ws-form-group {
    margin-bottom: 4px;
}

.ws-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ws-text-dark);
    margin-bottom: 3px;
}

.ws-form-group input {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.875rem;
    border: 1px solid var(--ws-border-light);
    border-radius: var(--ws-radius);
    font-family: inherit;
    transition: all 0.15s;
    background: var(--ws-bg-white);
    box-sizing: border-box;
}

.ws-form-group input:focus {
    outline: none;
    border-color: var(--ws-auth-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ws-auth-primary) 10%, transparent);
}

.ws-form-group input.error {
    border-color: var(--ws-auth-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ws-auth-primary) 10%, transparent);
}

.ws-form-error {
    display: none;
    font-size: 0.8rem;
    color: var(--ws-auth-primary);
    margin-top: 6px;
}

.ws-form-error.visible {
    display: block;
}

/* Password Strength Indicator */
.ws-password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.ws-password-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--gray-200, #e5e5e5);
    border-radius: 2px;
    overflow: hidden;
}

.ws-password-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.ws-password-strength-fill.ws-strength-weak { background-color: #ef4444; }
.ws-password-strength-fill.ws-strength-fair { background-color: #f59e0b; }
.ws-password-strength-fill.ws-strength-good { background-color: #22c55e; }
.ws-password-strength-fill.ws-strength-strong { background-color: #16a34a; }

.ws-password-strength-label {
    font-size: 0.75rem;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 42px;
    text-align: right;
}

.ws-password-strength-label.ws-strength-weak { color: #ef4444; }
.ws-password-strength-label.ws-strength-fair { color: #f59e0b; }
.ws-password-strength-label.ws-strength-good { color: #22c55e; }
.ws-password-strength-label.ws-strength-strong { color: #16a34a; }

/* Password Field with Toggle */
.ws-password-field {
    position: relative;
}

.ws-password-field input {
    padding-right: 44px;
}

.ws-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--ws-text-gray);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.ws-password-toggle:hover {
    color: var(--ws-text-dark);
}

/* Form Options Row */
.ws-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.8rem;
}

.ws-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ws-text-gray);
    cursor: pointer;
}

.ws-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ws-auth-primary);
    cursor: pointer;
}

.ws-forgot-password {
    color: var(--ws-auth-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.ws-forgot-password:hover {
    color: var(--ws-auth-primary-dark);
    text-decoration: underline;
}

/* Submit Button */
.ws-auth-submit-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, var(--ws-auth-primary) 0%, var(--ws-auth-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ws-auth-submit-btn:hover {
    background: linear-gradient(135deg, var(--ws-auth-primary-dark) 0%, color-mix(in srgb, var(--ws-auth-primary-dark) 80%, black) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--ws-auth-primary) 40%, transparent);
}

.ws-auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--ws-auth-primary) 30%, transparent);
}

.ws-auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ws-auth-submit-btn .btn-text {
    color: white;
}

.ws-auth-submit-btn:hover .btn-text {
    color: white;
}

.ws-auth-submit-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: wsAuthSpin 0.8s linear infinite;
}

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

/* Divider */
.ws-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    color: var(--ws-text-gray);
    font-size: 0.8rem;
}

.ws-auth-divider::before,
.ws-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ws-border-light);
}

/* Social Login Buttons */
.ws-social-login-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ws-social-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    background: var(--ws-bg-white);
    color: var(--ws-text-dark);
    border: 1px solid var(--ws-border-light);
    border-radius: var(--ws-radius);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ws-social-btn:hover {
    background: var(--ws-bg-light);
    border-color: var(--ws-text-gray);
}

.ws-social-btn svg {
    width: 20px;
    height: 20px;
}

/* Auth Message (Success/Error) */
.ws-auth-message {
    display: none;
    padding: 10px 14px;
    border-radius: var(--ws-radius);
    font-size: 0.85rem;
    margin-bottom: 14px;
    align-items: center;
    gap: 10px;
}

.ws-auth-message.visible {
    display: flex;
}

.ws-auth-message.success {
    background: var(--color-success-very-light);
    color: var(--color-success-dark);
    border: 1px solid var(--color-success-light);
}

.ws-auth-message.error {
    background: var(--color-error-very-light);
    color: var(--color-error-dark);
    border: 1px solid var(--color-error-light);
}

.ws-auth-message svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Terms Text */
.ws-terms-text {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--ws-text-gray);
    text-align: center;
    line-height: 1.5;
}

.ws-terms-text a {
    color: var(--ws-auth-primary);
    font-weight: 500;
    text-decoration: none;
}

.ws-terms-text a:hover {
    color: var(--ws-auth-primary-dark);
    text-decoration: underline;
}

/* Auth Switch Text */
.ws-auth-switch-text {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--ws-text-gray);
    text-align: center;
}

.ws-auth-switch-text a {
    color: var(--ws-auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.ws-auth-switch-text a:hover {
    color: var(--ws-auth-primary-dark);
    text-decoration: underline;
}

/* Forgot Password Modal Styles */
.ws-forgot-instructions {
    font-size: 0.9rem;
    color: var(--ws-text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.ws-forgot-form-state .ws-form-group {
    margin-bottom: 16px;
}

.ws-forgot-form-state .ws-auth-submit-btn {
    margin-top: 16px;
}

.ws-forgot-success-state {
    text-align: center;
    padding: 20px 0;
}

.ws-forgot-success-state .success-icon-large {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--color-success-very-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-forgot-success-state .success-icon-large svg {
    width: 32px;
    height: 32px;
    color: var(--color-success-dark);
}

.ws-forgot-success-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ws-text-dark);
    margin: 0 0 12px;
}

.ws-forgot-success-state p {
    font-size: 0.9rem;
    color: var(--ws-text-gray);
    margin: 0 0 12px;
    line-height: 1.5;
}

.ws-forgot-success-state p strong {
    color: var(--ws-text-dark);
}

.ws-forgot-note {
    font-size: 0.8rem !important;
    margin-bottom: 24px !important;
}

.ws-forgot-note a {
    color: var(--ws-auth-primary);
    font-weight: 500;
    text-decoration: none;
}

.ws-forgot-note a:hover {
    text-decoration: underline;
}

/* Value Proposition (Register Form) */
.ws-register-value-prop {
    background: linear-gradient(135deg, var(--color-success-very-light) 0%, var(--color-success-very-light) 100%);
    border: 1px solid var(--color-success-light);
    border-radius: var(--ws-radius);
    padding: 14px 16px;
    margin-bottom: 20px;
}

.ws-value-prop-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-success-dark);
    margin: 0 0 10px 0;
}

.ws-value-prop-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.ws-value-prop-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-success-dark);
}

.ws-value-prop-list li svg {
    flex-shrink: 0;
    stroke: var(--color-success);
}

/* ===========================================================================
   Account Type Selector (Registration Form)
   =========================================================================== */

.ws-account-type-selector {
    margin-bottom: 16px;
}

.ws-account-type-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ws-text-dark);
    margin-bottom: 10px;
}

.ws-account-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ws-account-type-option {
    cursor: pointer;
}

.ws-account-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ws-account-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: var(--ws-bg-white);
    border: 2px solid var(--ws-border-light);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.ws-account-type-option:hover .ws-account-type-card {
    border-color: var(--gray-300);
    background: var(--ws-bg-light);
}

.ws-account-type-option.selected .ws-account-type-card {
    border-color: var(--ws-auth-primary);
    background: color-mix(in srgb, var(--ws-auth-primary) 4%, transparent);
}

.ws-account-type-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--ws-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ws-text-gray);
    transition: all 0.2s ease;
}

.ws-account-type-option.selected .ws-account-type-icon {
    background: color-mix(in srgb, var(--ws-auth-primary) 10%, transparent);
    color: var(--ws-auth-primary);
}

.ws-account-type-icon--pro {
    background: linear-gradient(135deg, var(--color-warning-very-light) 0%, var(--color-warning-light) 100%);
    color: var(--color-warning-dark);
}

.ws-account-type-option.selected .ws-account-type-icon--pro {
    background: linear-gradient(135deg, var(--color-warning-light) 0%, var(--color-warning) 100%);
    color: white;
}

.ws-account-type-icon--team {
    background: linear-gradient(135deg, var(--color-info-very-light) 0%, var(--color-info-light) 100%);
    color: var(--color-info-dark);
}

.ws-account-type-option.selected .ws-account-type-icon--team {
    background: linear-gradient(135deg, var(--color-info-light) 0%, var(--color-info) 100%);
    color: white;
}

.ws-account-type-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ws-account-type-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ws-text-dark);
}

.ws-account-type-desc {
    font-size: 0.7rem;
    color: var(--ws-text-gray);
}

.ws-early-access-note {
    margin-top: 10px;
    padding: 8px 12px;
    background: color-mix(in srgb, var(--ws-auth-primary) 6%, transparent);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--ws-auth-primary);
    text-align: center;
    font-weight: 500;
}

/* ===========================================================================
   Team Setup Modal
   =========================================================================== */

.ws-auth-modal-header--team {
    background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-dark) 100%);
}

.ws-team-setup-intro {
    margin-bottom: 20px;
}

.ws-team-setup-intro p {
    font-size: 0.9rem;
    color: var(--ws-text-gray);
    margin: 0;
    line-height: 1.5;
}

.ws-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.875rem;
    border: 1px solid var(--ws-border-light);
    border-radius: var(--ws-radius);
    font-family: inherit;
    transition: all 0.15s;
    background: var(--ws-bg-white);
    box-sizing: border-box;
    resize: vertical;
    min-height: 60px;
}

.ws-form-group textarea:focus {
    outline: none;
    border-color: var(--color-info);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-info) 10%, transparent);
}

.ws-form-group select {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.875rem;
    border: 1px solid var(--ws-border-light);
    border-radius: var(--ws-radius);
    font-family: inherit;
    transition: all 0.15s;
    background: var(--ws-bg-white);
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

.ws-form-group select:focus {
    outline: none;
    border-color: var(--color-info);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-info) 10%, transparent);
}

.ws-optional {
    font-weight: 400;
    color: var(--ws-text-gray);
    font-size: 0.75rem;
}

.ws-form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--ws-text-gray);
    margin-top: 4px;
}

/* Team Invites */
.ws-team-invites-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ws-team-invite-row {
    display: flex;
    gap: 8px;
}

.ws-team-invite-email {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.875rem;
    border: 1px solid var(--ws-border-light);
    border-radius: var(--ws-radius);
    font-family: inherit;
    transition: all 0.15s;
    background: var(--ws-bg-white);
    box-sizing: border-box;
}

.ws-team-invite-email:focus {
    outline: none;
    border-color: var(--color-info);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-info) 10%, transparent);
}

.ws-team-invite-add,
.ws-team-invite-remove {
    width: 40px;
    height: 40px;
    border: 1px solid var(--ws-border-light);
    border-radius: var(--ws-radius);
    background: var(--ws-bg-white);
    color: var(--ws-text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.ws-team-invite-add:hover {
    background: var(--color-success-very-light);
    border-color: var(--color-success);
    color: var(--color-success);
}

.ws-team-invite-remove:hover {
    background: var(--color-error-very-light);
    border-color: var(--ws-auth-primary);
    color: var(--ws-auth-primary);
}

/* Team Setup Actions */
.ws-team-setup-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.ws-team-setup-actions .ws-auth-submit-btn {
    flex: 1;
}

.ws-auth-submit-btn--secondary {
    background: var(--ws-bg-light);
    color: var(--ws-text-dark);
    border: 1px solid var(--ws-border-light);
}

.ws-auth-submit-btn--secondary:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ws-auth-submit-btn--secondary .btn-text {
    color: var(--ws-text-dark);
}

/* Team Setup Modal - Blue theme submit button */
#wsTeamSetupForm .ws-auth-submit-btn:not(.ws-auth-submit-btn--secondary) {
    background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-dark) 100%);
}

#wsTeamSetupForm .ws-auth-submit-btn:not(.ws-auth-submit-btn--secondary):hover {
    background: linear-gradient(135deg, var(--color-info-dark) 0%, var(--planner-dark) 100%);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--color-info) 40%, transparent);
}

/* Responsive */
@media (max-width: 480px) {
    .ws-auth-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: var(--radius-xl);
    }

    .ws-auth-body {
        padding: 12px 16px 14px;
    }

    .ws-auth-modal-header {
        padding: 16px;
    }

    .ws-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ws-value-prop-list {
        grid-template-columns: 1fr;
    }

    /* Account type selector mobile */
    .ws-account-type-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ws-account-type-card {
        flex-direction: row;
        padding: 12px;
        gap: 12px;
    }

    .ws-account-type-info {
        align-items: flex-start;
    }

    /* Team setup actions mobile */
    .ws-team-setup-actions {
        flex-direction: column-reverse;
    }

    /* Survey mobile */
    .ws-survey-options--grid {
        grid-template-columns: 1fr !important;
    }

    .ws-survey-options--horizontal {
        flex-wrap: wrap;
    }

    .ws-survey-actions {
        flex-direction: column-reverse;
    }
}

/* ===========================================================================
   Intro Survey Modal Styles
   =========================================================================== */

/* Survey modal content */
.ws-survey-modal-content {
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Survey header - unique accent gradient, kept as-is */
.ws-auth-modal-header--survey {
    background: var(--survey-gradient);
    color: white;
    padding: 24px 24px 20px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.ws-auth-modal-header--survey h2 {
    color: white;
    margin: 0 0 4px 0;
    font-size: 1.25rem;
}

.ws-auth-modal-header--survey .ws-auth-close-btn {
    color: white;
    opacity: 0.8;
}

.ws-auth-modal-header--survey .ws-auth-close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.ws-survey-header-content {
    flex: 1;
}

.ws-survey-step {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.ws-survey-subtitle {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Survey body */
.ws-survey-body {
    padding: 20px 24px 24px;
}

/* Survey questions */
.ws-survey-question {
    margin-bottom: 24px;
}

.ws-survey-question:last-of-type {
    margin-bottom: 16px;
}

.ws-survey-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ws-text-dark);
    margin-bottom: 12px;
}

/* Grid layout for role options */
.ws-survey-options--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* List layout for single column options */
.ws-survey-options--list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Horizontal chip layout */
.ws-survey-options--horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Survey option card style */
.ws-survey-option {
    display: block;
    cursor: pointer;
}

.ws-survey-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ws-survey-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid var(--ws-border-light);
    border-radius: var(--ws-radius);
    background: var(--ws-bg-white);
    transition: all 0.15s ease;
    font-size: 0.875rem;
    color: var(--ws-text-dark);
}

.ws-survey-option-content svg {
    flex-shrink: 0;
    color: var(--ws-text-gray);
    transition: color 0.15s ease;
}

.ws-survey-option:hover .ws-survey-option-content {
    border-color: var(--coach-light);
    background: var(--coach-very-light);
}

.ws-survey-option input:checked + .ws-survey-option-content {
    border-color: var(--survey-accent);
    background: var(--coach-very-light);
}

.ws-survey-option input:checked + .ws-survey-option-content svg {
    color: var(--survey-accent);
}

/* Compact option style (for challenge list) */
.ws-survey-option--compact .ws-survey-option-text {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid var(--ws-border-light);
    border-radius: var(--ws-radius);
    background: var(--ws-bg-white);
    transition: all 0.15s ease;
    font-size: 0.875rem;
    color: var(--ws-text-dark);
}

.ws-survey-option--compact:hover .ws-survey-option-text {
    border-color: var(--coach-light);
    background: var(--coach-very-light);
}

.ws-survey-option--compact input:checked + .ws-survey-option-text {
    border-color: var(--survey-accent);
    background: var(--coach-very-light);
    color: var(--coach-dark);
    font-weight: 500;
}

/* Chip style options */
.ws-survey-chip {
    display: inline-block;
    cursor: pointer;
}

.ws-survey-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ws-survey-chip span {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 2px solid var(--ws-border-light);
    border-radius: 20px;
    background: var(--ws-bg-white);
    color: var(--ws-text-gray);
    transition: all 0.15s ease;
}

.ws-survey-chip:hover span {
    border-color: var(--coach-light);
    background: var(--coach-very-light);
    color: var(--ws-text-dark);
}

.ws-survey-chip input:checked + span {
    border-color: var(--survey-accent);
    background: var(--survey-accent);
    color: white;
}

/* Other input */
.ws-survey-other-input {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 0.875rem;
    border: 2px solid var(--ws-border-light);
    border-radius: var(--ws-radius);
    font-family: inherit;
    transition: all 0.15s;
    background: var(--ws-bg-white);
    box-sizing: border-box;
}

.ws-survey-other-input:focus {
    outline: none;
    border-color: var(--survey-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--survey-accent) 10%, transparent);
}

/* Survey actions */
.ws-survey-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ws-border-light);
}

.ws-survey-actions .ws-auth-submit-btn {
    flex: 1;
}

/* Survey gradient - unique accent, kept as-is */
.ws-survey-actions .ws-auth-submit-btn:not(.ws-auth-submit-btn--secondary) {
    background: var(--survey-gradient);
    border: none;
}

.ws-survey-actions .ws-auth-submit-btn:not(.ws-auth-submit-btn--secondary):hover {
    background: var(--survey-gradient-hover);
}
