:root {
    --ink: #172c2a;
    --muted: #70807d;
    --line: #e5ebe8;
    --green: #15966a;
    --green-dark: #087952;
    --green-soft: #eaf8f2;
    --gold: #f4b93e;
    --gold-soft: #fff7df;
    --surface: #ffffff;
    --canvas: #f8faf9;
    --font-body: "DM Sans", system-ui, sans-serif;
    --font-display: "Manrope", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% -8%, rgba(244, 185, 62, .16), transparent 30%),
        radial-gradient(circle at 8% 45%, rgba(21, 150, 106, .07), transparent 24%),
        var(--canvas);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

html,
body {
    overflow-x: hidden;
}

button,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.review-home-shell {
    width: calc(100% - 32px);
    max-width: 680px;
    margin: 0 auto;
    padding: 54px 0 42px;
}

.company-header {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 28px;
    text-align: center;
}

.company-logo {
    width: min(340px, 78vw);
    margin: 0 auto 18px;
}

.company-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.company-kicker {
    margin: 0 0 7px;
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.company-header h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(31px, 6vw, 42px);
    line-height: 1.1;
    letter-spacing: -1.6px;
}

.company-subtitle {
    max-width: 470px;
    margin: 11px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.review-form-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 20px 65px rgba(23, 52, 48, .09);
}

.form-block {
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}

.form-block:first-child {
    padding-top: 0;
}

.block-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.block-heading > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--green-dark);
    background: var(--green-soft);
    border-radius: 9px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
}

.block-heading h2 {
    margin: 1px 0 3px;
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: -.3px;
}

.block-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: clamp(7px, 2.5vw, 14px);
}

.star-rating button {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #cbd3d0;
    background: #fff;
    border: 1px solid #e2e8e6;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .16s, color .16s, background .16s, border-color .16s, box-shadow .16s;
}

.star-rating button:hover {
    transform: translateY(-2px);
    color: var(--gold);
    border-color: #f0d387;
}

.star-rating button.active {
    color: #eba91c;
    background: var(--gold-soft);
    border-color: #efd27e;
    box-shadow: 0 7px 18px rgba(222, 159, 25, .13);
}

.star-rating svg {
    width: 29px;
    fill: currentColor;
    stroke-width: 1.4;
}

.rating-label {
    min-height: 19px;
    margin: 10px 0 0;
    color: #a07820;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.suggestion-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.suggestion-chip {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    color: #4c625e;
    background: #fbfcfc;
    border: 1px solid #dfe7e4;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    overflow-wrap: anywhere;
    transition: color .15s, background .15s, border-color .15s, transform .15s;
}

.suggestion-chip:hover {
    transform: translateY(-1px);
    border-color: #a9d7c6;
}

.suggestion-chip svg {
    width: 16px;
    color: #9aaba7;
}

.suggestion-chip[aria-pressed="true"] {
    color: var(--green-dark);
    background: var(--green-soft);
    border-color: #9ed5c1;
}

.suggestion-chip[aria-pressed="true"] svg {
    color: var(--green);
    stroke-width: 2.5;
}

.language-select {
    position: relative;
    display: flex;
    align-items: center;
}

.language-select > svg:first-child {
    position: absolute;
    left: 14px;
    z-index: 1;
    width: 20px;
    color: var(--green);
    pointer-events: none;
}

.language-select select {
    width: 100%;
    height: 52px;
    appearance: none;
    padding: 0 46px;
    color: var(--ink);
    background: #fbfcfc;
    border: 1px solid #dce5e2;
    border-radius: 13px;
    outline: none;
    font-weight: 700;
    cursor: pointer;
}

.language-select select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(21, 150, 106, .1);
}

.select-arrow {
    position: absolute;
    right: 15px;
    width: 18px;
    color: #778985;
    pointer-events: none;
}

.generate-button,
.google-button {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.generate-button {
    min-height: 55px;
    margin-top: 26px;
    color: #fff;
    background: var(--green);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(21, 150, 106, .22);
    font-weight: 800;
    transition: background .16s, transform .16s, opacity .16s;
}

.generate-button:not(:disabled):hover {
    background: var(--green-dark);
}

.generate-button:not(:disabled):active {
    transform: translateY(1px);
}

.generate-button:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.button-ready,
.button-wait {
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.button-ready {
    display: flex;
}

.button-ready svg {
    width: 21px;
}

.button-wait {
    display: none;
}

.generate-button.loading .button-ready {
    display: none;
}

.generate-button.loading .button-wait {
    display: flex;
}

.button-wait i {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

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

.form-error {
    margin: 14px 0 0;
    padding: 11px 13px;
    color: #9d3439;
    background: #fff2f2;
    border: 1px solid #efcbcd;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.review-result {
    scroll-margin-top: 20px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.result-heading span {
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.result-heading h2 {
    margin: 3px 0 0;
    font-family: var(--font-display);
    font-size: 18px;
}

.result-heading button {
    padding: 8px 11px;
    color: var(--green-dark);
    background: var(--green-soft);
    border: 0;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.review-result textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    color: var(--ink);
    background: #fbfcfc;
    border: 1px solid #dce5e2;
    border-radius: 13px;
    outline: none;
    line-height: 1.65;
    resize: vertical;
}

.review-result textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(21, 150, 106, .09);
}

.result-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 7px 2px 16px;
    color: #85938f;
    font-size: 10px;
}

.google-button {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    color: #344844;
    background: #fff;
    border: 1px solid #cfdad7;
    border-radius: 14px;
    font-weight: 800;
}

.google-button:hover {
    background: #f9fbfa;
    border-color: #aebfbb;
}

.google-button svg {
    width: 22px;
    stroke-width: 1.9;
}

.copy-message {
    margin: 10px 0 0;
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.google-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 17px;
    color: #71817e;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.google-direct:hover {
    color: var(--green-dark);
}

.google-direct svg {
    width: 15px;
}

.honesty-note {
    margin: 18px 0 0;
    color: #899794;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

.unavailable-card {
    width: min(430px, calc(100% - 32px));
    margin: 22vh auto 0;
    padding: 38px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.unavailable-card h1 {
    margin: 0 0 8px;
    font-family: var(--font-display);
}

.unavailable-card p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 560px) {
    .review-home-shell {
        width: calc(100% - 20px);
        padding-top: 30px;
    }

    .company-logo {
        width: min(280px, 82vw);
        margin-bottom: 14px;
    }

    .company-subtitle {
        max-width: 340px;
        padding: 0 14px;
        font-size: 13px;
    }

    .review-form-card {
        padding: 22px 17px;
        border-radius: 19px;
    }

    .star-rating button {
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }

    .star-rating svg {
        width: 25px;
    }

    .suggestion-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .suggestion-chip {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        padding: 7px 10px;
        line-height: 1.25;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .review-home-shell {
        width: 100%;
        padding: 24px 10px 32px;
    }

    .company-header {
        max-width: 100%;
        margin-bottom: 24px;
    }

    .company-logo {
        width: min(240px, 76vw);
    }

    .company-header h1 {
        font-size: clamp(27px, 8.5vw, 32px);
        letter-spacing: -1px;
        overflow-wrap: anywhere;
    }

    .company-subtitle {
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
    }

    .review-form-card {
        min-width: 0;
        padding: 20px 14px;
        border-radius: 17px;
    }

    .form-block,
    .block-heading,
    .block-heading > div {
        min-width: 0;
    }

    .star-rating {
        width: 100%;
        gap: 6px;
    }

    .star-rating button {
        width: 42px;
        height: 42px;
        flex: 0 1 42px;
    }

    .suggestion-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .star-rating {
        gap: 5px;
    }

    .star-rating button {
        width: 42px;
        height: 42px;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
