/* Review Funnel - Rank Amsterdam */
:root {
    --primary: #e3967e;
    --bg: #faf7f5;
    --text: #2d2d2d;
    --success: #4CAF50;
    --star-empty: #d4d4d4;
    --star-filled: #FFB800;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-font-smoothing: antialiased;
}

.funnel-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    position: relative;
}

.step {
    display: none;
    text-align: center;
    width: 100%;
    animation: fadeUp 0.5s ease;
}

.step.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

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

/* Logo */
.business-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 24px;
    border-radius: 16px;
    animation: popIn 0.6s ease;
}

.business-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.question {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Stars */
.stars-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.star {
    width: 56px;
    height: 56px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--star-empty);
    transition: all 0.2s ease;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.star svg {
    width: 100%;
    height: 100%;
    transition: all 0.2s ease;
}

.star:hover,
.star.hovered {
    color: var(--star-filled);
    transform: scale(1.15);
}

.star:hover svg,
.star.hovered svg {
    fill: var(--star-filled);
}

.star.selected {
    color: var(--star-filled);
    transform: scale(1.1);
}

.star.selected svg {
    fill: var(--star-filled);
}

.star:active {
    transform: scale(0.95);
}

.star-label {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.6;
    min-height: 24px;
    transition: opacity 0.3s;
}

/* Icons */
.success-icon, .feedback-icon, .thanks-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: popIn 0.5s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 320px;
    -webkit-tap-highlight-color: transparent;
}

.btn-google {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    margin: 24px 0 16px;
    font-size: 1.15rem;
}

.btn-google:hover {
    background: #43A047;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-google:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-top: 16px;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.skip-link {
    color: var(--text);
    opacity: 0.5;
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 8px;
    transition: opacity 0.3s;
}

.skip-link:hover {
    opacity: 0.8;
}

/* Reminder */
.reminder {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 184, 0, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    animation: fadeUp 0.5s ease;
    width: 100%;
    max-width: 320px;
}

.reminder.hidden { display: none; }

/* Feedback */
textarea {
    width: 100%;
    max-width: 360px;
    padding: 16px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    background: rgba(255,255,255,0.8);
    color: var(--text);
    transition: border-color 0.3s;
    margin: 16px 0;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea::placeholder {
    color: var(--text);
    opacity: 0.4;
}

/* Social links */
.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.social-link {
    color: var(--text);
    opacity: 0.5;
    transition: all 0.3s;
}

.social-link:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
}

/* Subtitle */
.subtitle {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-top: 8px;
}

h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

p { line-height: 1.6; margin-bottom: 4px; }

/* Powered by */
.powered-by {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
}

.powered-by a {
    color: var(--text);
    opacity: 0.25;
    text-decoration: none;
    font-size: 0.75rem;
    transition: opacity 0.3s;
}

.powered-by a:hover { opacity: 0.5; }

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Mobile first responsive */
@media (max-width: 400px) {
    .star { width: 48px; height: 48px; }
    .stars-container { gap: 8px; }
    .business-logo { width: 100px; height: 100px; }
    .business-name { font-size: 1.3rem; }
    .question { font-size: 1.05rem; }
    h2 { font-size: 1.4rem; }
    .btn { padding: 14px 24px; font-size: 1rem; }
}

@media (min-width: 481px) {
    .funnel-container {
        min-height: auto;
        padding: 60px 40px;
        margin: 40px auto;
        background: white;
        border-radius: 24px;
        box-shadow: var(--shadow);
    }
    .powered-by { position: relative; margin-top: 40px; }
}

/* Subtle Google link (for low ratings after feedback) */
.subtle-google {
    margin: 24px 0;
    padding: 16px;
    background: rgba(0,0,0,0.03);
    border-radius: 12px;
    text-align: center;
}

.subtle-google.hidden {
    display: none;
}

.subtle-text {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 8px;
}

.subtle-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.subtle-link:hover {
    opacity: 1;
    text-decoration: underline;
}
