:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;

    /* Neutral Colors */
    --bg-primary: #0a0e27;
    --bg-secondary: #151932;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);

    /* Border & Shadow */
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 0.6s ease;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all var(--transition-normal);
}

.logo-icon img:hover {
    transform: scale(1.05);
}

.company-info {
    text-align: left;
}

.company-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.company-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    position: relative;
}

/* Card Styles */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.step-card {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-card.active {
    display: block;
}

.card-header {
    margin-bottom: var(--spacing-lg);
}

.step-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(102, 126, 234, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.step-number {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.step-total {
    color: var(--text-tertiary);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Radio Cards */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.radio-card:hover .radio-content {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.radio-card input[type="radio"]:checked+.radio-content {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.radio-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.radio-card input[type="radio"]:checked+.radio-content .radio-icon {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

.radio-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.radio-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.radio-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Toggle Group */
.toggle-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.toggle-option {
    position: relative;
    cursor: pointer;
}

.toggle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.toggle-option:hover .toggle-label {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.3);
}

.toggle-option input[type="radio"]:checked+.toggle-label {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Textarea */
.textarea-wrapper {
    position: relative;
}

textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: all var(--transition-normal);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Buttons - FINAL FIX */
.button-group,
.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    align-items: stretch;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    min-height: 50px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: inherit;
    line-height: 1.2;
    white-space: nowrap;
    flex: 1 1 0;
    text-align: center;
}

.btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:not(:disabled):active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Review Content */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.loader {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--spacing-md);
}

.review-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Instruction Modal */
.instruction-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.instruction-modal.active {
    display: flex !important;
}

.instruction-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.instruction-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
}

.instruction-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.instruction-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.instruction-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
}

.step-text strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.25rem;
}

.step-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.review-preview {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.preview-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.preview-text {
    color: #ffffff;
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
}

.btn-large {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    margin-top: var(--spacing-xl);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    padding-bottom: var(--spacing-lg);
}

.privacy-link {
    color: var(--text-secondary);
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-block;
    transition: color var(--transition-fast);
}

.privacy-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }

    .logo-section {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .company-info {
        text-align: center;
    }

    .company-name {
        font-size: 1.5rem;
    }

    .company-tagline {
        font-size: 0.8rem;
    }

    .logo-icon img {
        height: 50px;
    }

    .card {
        padding: var(--spacing-md);
    }

    .radio-content {
        padding: var(--spacing-sm);
    }

    .radio-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    /* Mobile Buttons */
    .button-group,
    .btn-group {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .btn {
        width: 100%;
        flex: none;
        padding: 1rem 1.5rem;
        min-height: 52px;
        font-size: 1rem;
    }

    .instruction-content {
        padding: 1.5rem;
    }

    .instruction-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .instruction-title {
        font-size: 1.5rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .instruction-step {
        padding: 0.75rem;
    }

    .btn-large {
        padding: 1rem;
        height: auto;
        font-size: 1rem;
    }

    .instruction-modal {
        align-items: flex-end;
        padding: 0;
    }

    .instruction-content {
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
    }
}