/* Home page feedback box ("نظر شما مهم است"). */

.rv-form {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
    max-width: 40rem;
    margin: 1.4rem auto 0;
    padding: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.7);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rv-form:focus-within {
    border-color: rgba(54, 189, 180, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 173, 156, 0.18), 0 20px 40px -26px rgba(0, 0, 0, 0.7);
}

.rv-field {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
}

.rv-field__icon {
    position: absolute;
    inset-inline-start: 0.85rem;
    width: 1.2rem;
    height: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.rv-input {
    width: 100%;
    height: 3rem;
    padding-inline: 2.7rem 0.9rem;
    border: 0;
    border-radius: 0.8rem;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.rv-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.rv-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 3rem;
    padding-inline: 1.3rem;
    border: 0;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #00ad9c, #0c58a4);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px -12px rgba(0, 173, 156, 0.9);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.rv-btn svg {
    width: 1.05rem;
    height: 1.05rem;
    /* paper plane points the way the text reads */
    transform: scaleX(-1);
}

.rv-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -12px rgba(0, 173, 156, 1);
}

.rv-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.rv-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

@media (max-width: 639px) {
    .rv-form {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .rv-input {
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.08);
        /* 16px keeps iOS from zooming into the page on focus */
        font-size: 16px;
    }

    .rv-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rv-form,
    .rv-btn {
        transition: none;
    }
}
