/* =====================================================
   BAClass — Pagina Testimoniale  (testimoniale.css)
   ===================================================== */

/* ---------- HERO ---------- */
.tst-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(320px, 46vh, 480px);
    display: flex;
    align-items: flex-end;
    padding-top: 70px;
    background:
        linear-gradient(135deg, rgba(22, 33, 58, 0.82), rgba(15, 27, 48, 0.9)),
        url("../images/1920x1000/Testimoniale.jpg") center / cover no-repeat;
}

.tst-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(1rem, 4vw, 3rem);
}

.tst-bubble {
    position: relative;
    align-self: center;
    margin-block: clamp(2rem, 5vw, 3.2rem);
    background: #fff;
    border-radius: 26px;
    padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1.8rem, 5vw, 3rem);
    box-shadow: 0 24px 60px rgba(15, 27, 48, 0.35);
    max-width: 460px;
    flex-shrink: 0;
}

.tst-hero__figure {
    align-self: flex-end;
    flex-shrink: 0;
    line-height: 0;
}

.tst-hero__figure img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: clamp(300px, 42vw, 480px);
}

.tst-bubble::after {
    content: "";
    position: absolute;
    right: -22px;
    top: 62%;
    transform: translateY(-50%);
    border-width: 16px 0 16px 24px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(6px 4px 5px rgba(15, 27, 48, 0.12));
}

.tst-bubble__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.08;
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    color: #16213a;
}

.tst-bubble__title span {
    color: #f7941d;
}

/* orange band sub hero */
.tst-band {
    height: clamp(28px, 5vw, 44px);
    background: var(--orange, #f7941d);
}

/* ---------- LISTA REVIEW-URI ---------- */
.tst-reviews {
    background: #f4f5f7;
    padding-block: clamp(2.6rem, 6vw, 4.5rem);
}

.tst-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.2rem, 2.6vw, 1.8rem);
}

.rev-card {
    background: var(--cream, #fff7ef);
    border: 4px solid #16213a;
    border-radius: 18px;
    padding: clamp(1.1rem, 2.4vw, 1.5rem);
    box-shadow: 3px 3px 0 rgba(22, 33, 58, 0.14);
}

.rev-card__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.rev-card__avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #16213a, #1f2d4d);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(22, 33, 58, 0.12);
}

.rev-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rev-card__avatar .icon {
    width: 50%;
    height: 50%;
    color: #fff;
}

.rev-card__name {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #f7941d;
    line-height: 1.2;
}

.rev-card__role {
    margin: 0.1rem 0 0;
    font-size: 0.85rem;
    color: var(--muted, #5b6577);
}

.rev-card__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--ink, #1c2433);
}

/* ---------- SECȚIUNE „LASĂ UN REVIEW” ---------- */
.tst-review {
    position: relative;
    overflow: hidden;
    background-color: #16213a;
    padding-block: clamp(2.8rem, 6vw, 4.6rem);
}

/* fundal full-width: poză estompată */
.tst-review__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(90deg, rgba(15, 27, 48, 0.4) 0%, rgba(15, 27, 48, 0.85) 55%, #16213a 100%),
        url("../images/1920x1000/Testimoniale.jpg");
    background-size: cover, cover;
    background-position: center, left center;
    background-repeat: no-repeat, no-repeat;
}

.tst-review__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(1.6rem, 4vw, 3.4rem);
    align-items: center;
}

.tst-review__aside {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
}

.tst-review__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 3.7rem);
    line-height: 1.08;
}

.tst-review__pencil {
    width: clamp(205px, 38vw, 290px);
    height: auto;
    transform: rotate(-2deg);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}

.tst-review__lead {
    margin: 0;
    font-size: clamp(1.45rem, 3.4vw, 2.05rem);
    font-weight: 700;
    color: #fff;
}

/* formular */
.tst-form {
    background: #fff;
    border-radius: var(--radius, 22px);
    box-shadow: 0 28px 64px rgba(15, 27, 48, 0.38);
    padding: clamp(1.6rem, 3.5vw, 2.4rem);
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.tst-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tst-field__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #16213a;
}

.tst-field__label .icon {
    width: 22px;
    height: 22px;
    color: #f7941d;
}

.tst-field__opt {
    font-weight: 500;
    color: #9aa3b2;
}

.tst-input,
.tst-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e3ddd3;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    color: #1c2433;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tst-textarea {
    min-height: 96px;
    resize: vertical;
}

.tst-input:focus,
.tst-textarea:focus {
    outline: none;
    border-color: #f7941d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.18);
}

/* upload poză */
.tst-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1.3rem 1rem;
    border: 1.5px dashed #d8cfc2;
    border-radius: 12px;
    background: #fffaf3;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tst-upload:hover {
    border-color: #f7941d;
    background: #fff6ea;
}

.tst-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.tst-upload__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(247, 148, 29, 0.14);
    color: #f7941d;
}

.tst-upload__icon .icon {
    width: 20px;
    height: 20px;
}

.tst-upload__title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #16213a;
}

.tst-upload__hint {
    font-size: 0.78rem;
    color: #9aa3b2;
}

.tst-upload__file {
    font-size: 0.82rem;
    color: #e07e08;
    font-weight: 600;
}

/* rating stele */
.tst-stars {
    display: inline-flex;
    gap: 0.25rem;
}

.tst-star {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    line-height: 0;
    color: #d8cfc2;
    transition: color 0.15s ease, transform 0.15s ease;
}

.tst-star .icon {
    width: 26px;
    height: 26px;
    fill: currentColor;
    stroke: none;
}

.tst-star:hover {
    transform: scale(1.12);
}

.tst-star.is-active {
    color: #f7941d;
}

/* buton + nota */
.tst-form__submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.2rem;
}

.tst-form__submit .icon {
    width: 18px;
    height: 18px;
}

.tst-form__note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--muted, #5b6577);
}

.tst-form__note .icon {
    width: 16px;
    height: 16px;
    color: #f7941d;
    fill: currentColor;
    stroke: none;
}

/* ---------- FEEDBACK FORMULAR ---------- */
.tst-alert {
    border-radius: var(--radius-sm, 14px);
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 0.4rem;
}

.tst-alert--error {
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.28);
    color: #a5281c;
}

.tst-alert--success {
    background: rgba(247, 148, 29, 0.1);
    border: 1px solid rgba(247, 148, 29, 0.32);
    color: #b8710a;
}

.tst-sent {
    text-align: center;
    padding: 1.4rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.tst-sent__icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--orange, #f7941d);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(247, 148, 29, 0.35);
}

.tst-sent__title {
    margin: 0;
    color: var(--navy, #16213a);
    font-size: 1.25rem;
}

.tst-sent__text {
    margin: 0;
    max-width: 360px;
    color: var(--muted, #5b6577);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .tst-hero__inner {
        justify-content: center;
    }
    .tst-hero__figure {
        display: none;
    }
    .tst-bubble {
        align-self: center;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .tst-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tst-review__inner {
        grid-template-columns: 1fr;
    }
    .tst-review__aside {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 560px) {
    .tst-grid {
        grid-template-columns: 1fr;
    }
}
