/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Override Bootstrap container max-width for consultation */
body > .container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideUp 0.5s ease;
    padding: 0 !important;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: white;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.logo {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.05rem;
    opacity: 0.95;
    font-weight: 400;
    position: relative;
    z-index: 1;
    letter-spacing: 0.2px;
}

/* Progress Bar - Bootstrap Integration */
.progress-container {
    background: linear-gradient(to bottom, var(--bg-lighter), var(--bg-light));
    border-bottom: 1px solid var(--border-color);
}

.progress {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #7c3aed, #ec4899) !important;
    background-size: 200% 100% !important;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Consultation Container */
.consultation-container {
    padding: 40px 30px;
    min-height: 400px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.step-content {
    animation: fadeIn 0.3s ease;
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-8px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(8px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.step-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-title::before {
    content: '';
    width: 6px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    border-radius: 3px;
    flex-shrink: 0;
}

.step-description {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 35px;
    line-height: 1.6;
    padding-left: 18px;
}

/* Question Styles */
.question-group {
    margin-bottom: 32px;
}

.question-label {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.5;
    letter-spacing: -0.2px;
}

/* Option Buttons - Bootstrap Integration */
.options-container .option-button {
    padding: 22px 28px;
    border-width: 2.5px !important;
    border-radius: var(--radius);
    min-height: 72px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
    touch-action: manipulation;
}

.options-container .option-button.btn-outline-primary:hover {
    border-width: 3px !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.options-container .option-button.btn-primary.selected {
    border-width: 3px !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.option-button span {
    flex: 1;
}

/* Remove old option-button styles - now using Bootstrap */

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Input Fields */
.input-field {
    width: 100%;
    padding: 16px 20px;
    border: 2.5px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1.05rem;
    transition: var(--transition);
    margin-top: 10px;
    background: var(--bg-white);
    font-weight: 500;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--bg-white);
}

.input-field::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* Navigation Buttons - Bootstrap Integration */
.navigation-buttons .btn {
    min-height: 60px;
    padding: 18px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    touch-action: manipulation;
    transition: var(--transition);
}

.navigation-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.navigation-buttons .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.navigation-buttons .btn-primary:active:not(:disabled) {
    transform: scale(0.98);
}

.navigation-buttons .btn-back {
    max-width: 180px;
    min-width: 160px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 35px 20px;
    }

    .header .container-fluid {
        padding: 0 !important;
    }

    .logo {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .consultation-container,
    .summary-container {
        padding: 32px 20px !important;
    }

    .step-title {
        font-size: 1.6rem;
    }

    .step-title::before {
        width: 5px;
        height: 28px;
    }

    .progress-container {
        padding: 24px 20px !important;
    }

    .options-container .option-button {
        min-height: 68px;
        padding: 20px 24px;
        font-size: 1.05rem;
    }
    
    .navigation-buttons {
        flex-direction: column !important;
        gap: 12px;
    }
    
    .navigation-buttons .btn-back {
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
    
    .navigation-buttons .btn {
        min-height: 56px;
        padding: 16px 28px;
        font-size: 1.05rem;
        width: 100%;
    }
    
    .cta-buttons .btn {
        min-height: 60px;
        padding: 18px 28px;
        font-size: 1.1rem;
    }
    
    /* Contact Card Mobile */
    .contact-card .card-body {
        padding: 24px 20px !important;
    }
    
    .contact-avatar-img {
        width: 100px;
        height: 100px;
    }
    
    .contact-avatar-img.fallback-avatar {
        font-size: 2rem;
    }
    
    .contact-name {
        font-size: 1.3rem;
    }
    
    .contact-item {
        padding: 16px !important;
    }
    
    .contact-icon {
        width: 44px !important;
        height: 44px !important;
    }
    
    .contact-value {
        font-size: 0.95rem;
    }
    
    /* Summary Mobile */
    .summary-section {
        padding: 24px 20px;
    }

    .summary-section-title {
        font-size: 1.25rem;
    }
}

/* Summary Container */
.summary-container {
    padding: 40px 30px;
}

.summary-header {
    text-align: center;
    margin-bottom: 45px;
    padding: 20px 0;
}

.summary-header > div:first-child {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 0.8s ease;
    display: inline-block;
}

.summary-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.summary-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Summary sections using Bootstrap cards */
.summary-section.card {
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid var(--border-light) !important;
}

.summary-section.card:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}

.summary-section.card.border-primary {
    border-width: 2px !important;
}

.summary-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.summary-section-title i {
    font-size: 1.3rem;
}

.summary-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Summary list items now use Bootstrap icons */
.summary-list {
    list-style: none;
    padding: 0;
}

.summary-list li {
    padding: 12px 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.summary-list li i {
    font-size: 1.1rem;
    margin-right: 8px;
}

/* Contact Card Styles */
.contact-card-wrapper {
    animation: fadeInUp 0.5s ease;
}

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

.contact-card {
    background: linear-gradient(to bottom right, #ffffff, #f8fafc);
    border: 1px solid var(--border-light) !important;
}

.contact-card.animate-fade-in {
    animation: fadeIn 0.4s ease;
}

.contact-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-avatar-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    border-radius: 50%;
}

.contact-avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-avatar-img.fallback-avatar {
    border: none;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 2.5rem;
}

.contact-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.contact-title {
    font-size: 1rem;
    font-weight: 500;
}

.contact-intro {
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.contact-item {
    transition: var(--transition);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    color: inherit;
}

.contact-item:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
}

.contact-item:active {
    transform: translateX(2px);
}

.contact-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius);
}

.contact-icon {
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-dark);
}

.contact-note {
    font-size: 0.875rem;
}

.cta-container {
    position: relative;
}

.cta-button-wrapper button:disabled {
    cursor: default;
    opacity: 0.8;
}

.cta-button-wrapper button.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-color: var(--success-color);
}

/* Contact card mobile styles consolidated above */

/* CTA Buttons - Bootstrap Integration */
.cta-buttons .btn {
    min-height: 64px;
    padding: 20px 36px;
    font-size: 1.15rem;
    font-weight: 700;
    touch-action: manipulation;
    transition: var(--transition);
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    border: none;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

.cta-buttons .btn-primary:active {
    transform: scale(0.98);
}

.cta-buttons .btn-outline-primary {
    border-width: 3px;
}

.cta-buttons .btn-outline-primary:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.05));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    padding: 32px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-lighter));
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Utility Classes - Bootstrap compatible */
.opacity-50 {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Additional responsive styles consolidated above in main @media query */

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .summary-title {
        font-size: 1.5rem;
    }
}