:root {
    --primary-orange: #F56500;
    --primary-blue: #3182CE;
    --light-orange: #FED7AA;
    --light-blue: #DBEAFE;
    --light-green: #D1FAE5;
    --text-dark: #2D3748;
    --text-light: #718096;
    --bg-cream: #FDFBF8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-cream);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Homepage Styles */
.homepage-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.logo-container {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.logo-section {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-direction: row;
}

.logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.logo-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.brand-text {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
    display: inline-block;
}

.logo-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.main-headline {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.brand-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.sub-headline {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.cta-buttons.single-button {
    justify-content: center;
}

.cta-button {
    border: none;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1 1 0;
    min-width: 240px;
    max-width: 100%;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(245, 101, 0, 0.3);
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.cta-button-2 {
    background: var(--primary-blue) !important;
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.3) !important;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 101, 0, 0.4);
    color: white;
}

.cta-button-2:hover {
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.4) !important;
}

.cta-icon {
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.features-container {
    display: flex;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

.feature-card {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
}

.feature-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon {
    font-size: 24px;
    color: white;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Step Flow Styles */
.step-flow-container {
    min-height: 100vh;
    display: none;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.step-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--logo-bg-gradient, linear-gradient(135deg, #f093fb 0%, #f5576c 100%));
}

.step-logo svg {
    width: 25px;
    height: 25px;
    fill: white;
}

.step-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.step-counter {
    text-align: right;
}

.step-counter-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.step-progress {
    width: 200px;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.step-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.breadcrumb-chip {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    animation: slideInBreadcrumb 0.3s ease forwards;
}

.breadcrumb-chip .icon {
    font-size: 1rem;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-question {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3rem;
}

.choices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.choice-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 30px;
}

.choice-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 15px rgba(245, 101, 0, 0.1);
    transform: translateY(-2px);
}

.choice-card.selected {
    border-color: var(--primary-orange);
    background-color: var(--light-orange);
    box-shadow: 0 4px 15px rgba(245, 101, 0, 0.2);
}

.choice-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.choice-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Substep Section */
.substep-section {
    margin-top: 2rem;
    padding-top: 2rem;
}

.substep-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin-bottom: 1.5rem;
}

.substep-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1.5rem;
}

.substep-choices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.substep-choice {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e0;
    border-radius: 25px;
    padding: 0.5rem;
    min-height: 30px;
}

.substep-choice:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
}

.substep-choice.selected {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.2);
}

.other-input {
    margin-top: 1rem;
    display: none;
}

.other-input input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 2rem;
}

.nav-button {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-button.back {
    background: white;
    border-color: #e2e8f0;
    color: var(--text-light);
}

.nav-button.back:hover {
    border-color: var(--text-light);
    color: var(--text-dark);
}

.nav-button.next {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.nav-button.next:hover {
    background: #e55a00;
    border-color: #e55a00;
}

.nav-button.next:disabled {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
}

/* Loading Screen */
.loading-container {
    min-height: 100vh;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.loading-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
    background: var(--logo-bg-gradient, linear-gradient(135deg, #f093fb 0%, #f5576c 100%));
}

.loading-logo svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.loading-brand {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

.loading-messages {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 3rem;
    padding: 0 2rem;
    width: 100%;
}

.loading-message {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

/* Results Screen */
.results-container {
    min-height: 100vh;
    display: none;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.results-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.action-button {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    justify-content: center;
}

.action-button.start-over {
    background: white;
    border-color: #e2e8f0;
    color: var(--text-light);
}

.action-button.start-over:hover {
    border-color: var(--text-light);
    color: var(--text-dark);
}

.action-button.get-more {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.action-button.get-more:hover {
    background: #e55a00;
    border-color: #e55a00;
}

.action-button.chat-expert {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.action-button.chat-expert:hover {
    background: #2c5aa0;
    border-color: #2c5aa0;
}

.gift-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gift-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
}

.gift-image {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

.gift-content {
    flex: 1;
}

.gift-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.gift-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.gift-title:hover {
    color: #000;
    text-decoration: underline;
}

.gift-rating {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: #fbbf24;
    font-size: 1.2rem;
}

.gift-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.gift-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.gift-tag.price {
    background-color: var(--light-orange);
    color: var(--primary-orange);
}

.gift-tag.availability {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.gift-description {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.gift-why-perfect {
    background-color: var(--light-blue);
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.gift-why-perfect-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gift-why-perfect-text {
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 1.05rem;
}

.gift-where-to-buy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.gift-where-to-buy a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.gift-where-to-buy a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .results-container {
        max-width: 1000px;
    }
    
}

@media (max-width: 768px) {
    .main-headline, .brand-name {
        font-size: 2.5rem;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .brand-text {
        font-size: 2.5rem;
    }
    
    .sub-headline {
        font-size: 1.1rem;
    }
    
    .features-container {
        flex-direction: column;
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .homepage-container {
        padding: 1rem;
    }
    
    .step-flow-container, .loading-container, .results-container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .loading-messages {
        max-width: 100%;
        padding: 0 1rem;
        height: 4rem;
    }
    
    .loading-message {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .step-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .step-logo-section {
        justify-content: center;
    }
    
    .step-counter {
        text-align: center;
    }
    
    .step-progress {
        width: 150px;
    }
    
    .step-question {
        font-size: 2rem;
    }
    
    .choices-grid {
        grid-template-columns: 1fr;
    }
    
    .substep-choices-grid {
        grid-template-columns: 1fr;
    }
    
    
    .gift-card {
        flex-direction: column;
        text-align: center;
    }
    
    .gift-image {
        width: 100%;
        height: 250px;
        align-self: center;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .main-headline, .brand-name {
        font-size: 2rem;
    }
    
    .brand-text {
        font-size: 2rem;
    }
    
    .sub-headline {
        font-size: 1rem;
    }
    
    .loading-messages {
        padding: 0 0.5rem;
        height: 5rem;
    }
    
    .loading-message {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .features-container {
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon-container {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon {
        font-size: 20px;
    }
    
    .feature-icon span {
        font-size: 16px;
        line-height: 19px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .step-question {
        font-size: 1.5rem;
    }
    
    .choice-card {
        padding: 0.4rem;
        min-height: 25px;
        border-radius: 20px;
    }
    
    .choice-icon {
        font-size: 1rem;
    }
    
    .choice-text {
        font-size: 0.7rem;
    }
}

/* Other Input Styles */
.other-input-container {
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlide 0.3s ease forwards;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.other-input-wrapper {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--light-orange);
    max-width: 500px;
    margin: 0 auto;
}

.other-input-wrapper .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.other-input-wrapper .input-group .form-control {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px 0 0 12px;
    transition: all 0.3s ease;
}

.other-input-wrapper .input-group .form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(245, 101, 0, 0.1);
}

.other-input-wrapper .input-group-append {
    display: flex;
}

.other-input-wrapper .input-group-append .btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    border-radius: 0 12px 12px 0;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.other-input-wrapper .input-group-append .btn i {
    color: white;
    font-size: 1.2rem;
    line-height: 1;
}

.other-input-wrapper .input-group-append .btn:hover {
    background: var(--dark-orange);
    border-color: var(--dark-orange);
    transform: scale(1.05);
}

.other-input-wrapper .form-text {
    margin-top: 0.75rem;
    display: block;
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
}

.other-input-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.other-input-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-orange);
    border-radius: 12px;
}

.other-input-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.other-input-field {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.other-input-field input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #F8FAFC;
}

.other-input-field input:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: white;
    box-shadow: 0 0 0 3px rgba(245, 101, 0, 0.1);
}

.other-input-field input::placeholder {
    color: #94A3B8;
}

.other-input-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-orange);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.other-input-submit:hover {
    background: #E55A00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 101, 0, 0.3);
}

.other-input-submit:active {
    transform: translateY(0);
}

.other-input-submit i {
    font-size: 1.1rem;
}

/* Animation for other input */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive styles for other input */
@media (max-width: 768px) {
    .other-input-wrapper {
        padding: 1.25rem;
        margin: 0 1rem;
    }
    
    .other-input-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .other-input-field {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .other-input-field input {
        width: 100%;
    }
    
    .other-input-submit {
        width: 100%;
        height: 44px;
    }
}

/* Take Survey Button */
.take-survey-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease forwards, breathe 2s ease-in-out infinite;
    opacity: 0;
    transform: translateX(100px);
}

.take-survey-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.survey-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.take-survey-btn i {
    font-size: 16px;
    margin-bottom: 2px;
}

.survey-text {
    font-size: 10px;
    line-height: 1;
    margin: 0;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 768px) {
    .take-survey-btn {
        bottom: 15px;
        right: 15px;
        width: 60px;
        height: 60px;
        font-size: 11px;
    }
    
    .take-survey-btn i {
        font-size: 14px;
    }
    
    .survey-text {
        font-size: 9px;
    }
}

/* Multi-choice info styling */
.multi-choice-info {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    animation: fadeInUp 0.3s ease-out;
}

.multi-choice-info i {
    color: var(--primary-blue);
    font-size: 0.8rem;
}

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

/* High traffic message styling */
.loading-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.loading-actions .btn {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.loading-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.loading-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), #ff7a00);
    border: none;
}

.loading-actions .btn-outline-secondary {
    border-color: var(--text-light);
    color: var(--text-light);
}

.loading-actions .btn-outline-secondary:hover {
    background-color: var(--text-light);
    color: white;
    border-color: var(--text-light);
}

.text-warning {
    color: #f59e0b !important;
}

/* Loading screen error state styling */
.loading-content {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.loading-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Star Rating Styles */
.gift-rating {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.gift-rating .star {
    color: #ddd;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.gift-rating .star.filled {
    color: #ffd700;
}

.gift-rating .star.half {
    color: #ffd700;
    position: relative;
}

.gift-rating .star.half::after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    color: #ddd;
    z-index: -1;
}

.gift-rating .rating-text {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-left: 0.5rem;
}

.loading-message {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.loading-spinner {
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Back to Home Button (top center, half hidden) */
.back-button-container {
    position: fixed;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.back-button {
    width: 160px;
    height: 40px;
    border-radius: 0 0 20px 20px;
    padding: 6px 12px;
    min-width: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1;
    background: linear-gradient(135deg, #ffb366, #ff9a4d);
    color: white;
    text-decoration: none;
    box-shadow: 0 3px 15px rgba(255, 154, 77, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-top: none;
    transition: all 0.2s ease;
}

.back-button:hover {
    transform: translateY(3px);
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

.back-button span {
    display: inline;
    font-size: 0.8rem;
}

.back-button i {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .back-button {
        width: 120px;
        height: 28px;
        border-radius: 0 0 15px 15px;
        padding: 2px 4px;
        gap: 0.3rem;
        font-size: 0.6rem;
    }

    .back-button span {
        font-size: 0.6rem;
    }

    .back-button i {
        font-size: 0.6rem;
    }

    .back-button:active {
        transform: translateY(3px);
        background: linear-gradient(135deg, #ff6b35, #f7931e);
        box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4);
    }
}
