/* Write Review modal */
.review-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.review-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.review-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 41, 32, 0.55);
    backdrop-filter: blur(3px);
}

.review-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    max-height: min(92vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.review-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1a3d32;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.review-modal__close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.review-modal__banner {
    background: linear-gradient(135deg, #1a3d32 0%, #0f2920 100%);
    color: #fff;
    padding: 1.35rem 1.25rem 1.15rem;
}

.review-modal__banner-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-right: 2rem;
}

.review-modal__logo {
    flex-shrink: 0;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
}

.review-modal__kicker {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.review-modal__banner h2 {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.review-modal__banner p:last-child {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
}

.review-modal__body {
    padding: 1.25rem;
}

.review-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.95rem;
}

.review-form__field > span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a3d32;
}

.review-form__field input,
.review-form__field textarea {
    width: 100%;
    border: 1px solid rgba(26, 61, 50, 0.16);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font: inherit;
    font-size: 0.92rem;
    color: #222;
    background: #fafbfa;
    resize: vertical;
}

.review-form__field input:focus,
.review-form__field textarea:focus {
    outline: none;
    border-color: #c9922e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 146, 46, 0.15);
}

.review-form__rating {
    border: none;
    margin: 0 0 1rem;
    padding: 0;
}

.review-form__rating legend {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a3d32;
    margin-bottom: 0.45rem;
}

.review-stars-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.2rem;
}

.review-stars-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-stars-input label {
    cursor: pointer;
    color: #d4d0c8;
    transition: color 0.15s, transform 0.15s;
}

.review-stars-input label svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    display: block;
}

.review-stars-input label:hover,
.review-stars-input label:hover ~ label,
.review-stars-input input:checked ~ label {
    color: #fbbc04;
}

.review-stars-input label:hover {
    transform: scale(1.08);
}

.review-form__error,
.review-form__success {
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.45;
}

.review-form__error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.review-form__success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.review-form__submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, #1a3d32, #1a5c3e);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(26, 61, 50, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-form__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(26, 61, 50, 0.3);
}

.review-form__submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.reviews-write-btn {
    cursor: pointer;
    border: none;
}
