:root {
    --primary:    #4CAF50;
    --hover:      #66BB6A;
    --star-gold:  #FFD700;
    --background: #0D1117;
    --glass:      rgba(22, 27, 34, 0.95);
    --text-main:  #F0F6FC;
    --text-muted: #8B949E;
    --border:     #30363D;
    --shadow:     0 20px 60px rgba(0, 0, 0, 0.6);
    --star-bg:    #161B22;
    --danger:     #F85149;
    --google-blue: #4285F4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    overflow-x: hidden;
}

/* ── Background ── */
.background-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 10% 10%, rgba(45, 90, 39, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(45, 90, 39, 0.08) 0%, transparent 50%);
    z-index: -1;
}

/* ── Card ── */
.container {
    background: var(--glass);
    backdrop-filter: blur(24px);
    width: 100%;
    max-width: 520px;
    padding: 48px 36px;
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* ── Header / Logo ── */
.header { margin-bottom: 40px; }
.logo   { margin-bottom: 24px; }
.logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}

/* ── Progress Bar ── */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #81C784);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.5);
}

/* ── Typography ── */
.heading {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1.25;
    color: #FFF;
}
.subheading {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.6;
}
.footer-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
    font-style: italic;
}

/* ── Step Containers ── */
.step-container {
    display: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.step-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.step-container.exiting {
    opacity: 0;
    transform: translateY(-16px);
}

/* ── Star Rating Grid ── */
.stars-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.star-btn {
    background: var(--star-bg);
    border: 1px solid var(--border);
    padding: 22px 24px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    width: 100%;
    font-size: 1.05rem;
    color: var(--text-main);
    min-height: 70px;
}
.star-btn:hover {
    border-color: var(--primary);
    background: #1c2128;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.12);
}
.star-btn.selected {
    border-color: var(--primary);
    background: rgba(76, 175, 80, 0.08);
    box-shadow: 0 0 0 2px var(--primary);
}
.stars {
    color: var(--star-gold);
    letter-spacing: 3px;
    font-size: 1.5rem;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.25);
}
.label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
}

/* ── Emoji / Icon ── */
.emoji-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop-in {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Google Review Button ── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    background: #fff;
    color: #3c4043;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 14px;
}
.btn-google:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.btn-google.btn-google-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.25);
    box-shadow: none;
}
.btn-google.btn-google-outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.4);
}
.btn-google.btn-google-outline .google-logo {
    filter: invert(1);
}
.google-logo {
    height: 22px;
    width: auto;
    flex-shrink: 0;
}

/* ── Link-style button ── */
.btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 6px;
}
.btn-link:hover { color: var(--text-main); }

/* ── Divider ── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Compliance Note ── */
.compliance-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ── Feedback Form ── */
.feedback-form {
    text-align: left;
}

.input-group {
    margin-bottom: 18px;
}
.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.required-mark { color: var(--danger); }

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    background: #0D1117;
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}
.input-group input::placeholder,
.input-group textarea::placeholder { color: #484f58; }

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}
.input-group input.field-error,
.input-group textarea.field-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.15);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}

/* ── Form Actions ── */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btn-primary,
.btn-secondary {
    padding: 16px 20px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}
.btn-primary {
    background: var(--primary);
    color: #000;
    flex: 2;
}
.btn-primary:hover {
    background: var(--hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.35);
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    flex: 1;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* ── Success Icon ── */
.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.12);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Contact Nudge (Step 1 footer) ── */
.contact-nudge {
    margin-top: 24px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.nudge-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.nudge-link:hover {
    color: var(--hover);
    text-decoration: underline;
}

/* ── Contact-First Box (Step 2 negative) ── */
.contact-first-box {
    background: linear-gradient(135deg, rgba(34, 60, 36, 0.55), rgba(20, 40, 22, 0.4));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    padding: 24px 22px 18px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-first-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #81C784, var(--primary));
}
.contact-first-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.contact-first-sub {
    font-size: 0.85rem;
    color: #9ECA9E;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* ── Contact Buttons (SMS + Email) ── */
.contact-btns {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.btn-contact {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.22s ease;
    border: 1.5px solid transparent;
    text-align: left;
    min-height: 72px;
}
.contact-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.contact-details strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}
.contact-details small {
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1;
}

/* SMS Button */
.btn-sms {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25D366;
}
.btn-sms strong { color: #fff; }
.btn-sms small  { color: #86efac; }
.btn-sms:hover {
    background: rgba(37, 211, 102, 0.22);
    border-color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

/* Email Button */
.btn-email {
    background: rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.3);
    color: #4285F4;
}
.btn-email strong { color: #fff; }
.btn-email small  { color: #93c5fd; }
.btn-email:hover {
    background: rgba(66, 133, 244, 0.2);
    border-color: #4285F4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.2);
}

/* Review permanence note */
.contact-review-note {
    font-size: 0.78rem;
    color: rgba(155, 200, 155, 0.7);
    line-height: 1.5;
    margin-top: 4px;
}

/* ── Email Modal ── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: modal-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-pop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.modal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 600;
    transition: transform 0.2s;
}
.modal-btn:hover { transform: translateY(-4px); }

.modal-btn img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    object-fit: contain;
    background: #fff;
    padding: 6px;
}

.mail-icon-circle {
    width: 48px;
    height: 48px;
    background: #4285F4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ── Contact Nudge Trigger (Step 1) ── */
.contact-nudge-trigger {
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.nudge-btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

/* ── Resolution Center Action List ── */
.modal-action-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
    text-align: left;
}

/* ── Compliance Footer ── */
.compliance-footer {
    margin-top: 40px;
    opacity: 0.8;
}
.compliance-text {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 12px 0 20px;
    line-height: 1.5;
}
.btn-google.small-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
}
.action-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.action-btn .icon { font-size: 1.5rem; }
.action-btn .details strong { display: block; font-size: 1rem; }
.action-btn .details small { color: var(--text-dim); font-size: 0.75rem; }

.modal-close-x {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-dim);
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close-x:hover { background: rgba(255,255,255,0.15); color: #fff; }
@media (max-width: 480px) {
    .container {
        padding: 32px 20px;
        margin: 12px;
    }
    .heading { font-size: 1.7rem; }
    .contact-btns {
        flex-direction: column;
    }
}

/* ── Choice Grid (Step Initial) ── */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

.choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choice-btn:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.08);
}

.choice-btn.positive:hover {
    border-color: #10b981;
}

.choice-btn.negative:hover {
    border-color: #f59e0b;
}

.choice-icon {
    font-size: 2.5rem;
}

.choice-btn span {
    font-size: 1.1rem;
    font-weight: 700;
}

@media (min-width: 480px) {
    .choice-grid {
        grid-template-columns: 1fr 1fr;
    }
}


