/* ============================================================
   Prism CAPTCHA
   Modern / Minimal / RTL Friendly
============================================================ */

.prism-captcha {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(15, 76, 58, 0.10);
    border-radius: 14px;
    background: rgba(248, 246, 241, 0.65);
}

 .prism-captcha__header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.prism-captcha__label {
    margin: 0;
    color: #082D24;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
}

.prism-captcha__refresh {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    padding: 0;
    border: 1px solid rgba(15, 76, 58, 0.12);
    border-radius: 9px;
    background: #ffffff;
    color: #0F4C3A;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.prism-captcha__refresh:hover {
    background: #f8f6f1;
    border-color: rgba(15, 76, 58, 0.25);
    box-shadow: 0 4px 12px rgba(15, 76, 58, 0.08);
}

.prism-captcha__refresh:active {
    transform: scale(0.94);
}

.prism-captcha__refresh:focus-visible {
    outline: none;
    border-color: rgba(15, 76, 58, 0.45);
    box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.08);
}

.prism-captcha__refresh svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

.prism-captcha__refresh:hover svg {
    transform: rotate(35deg);
}

.prism-captcha__body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.prism-captcha__image-wrap {
    position: relative;
    flex: 0 0 170px;
    width: 170px;
    height: 56px;
    overflow: hidden;
    border: 1px solid rgba(15, 76, 58, 0.12);
    border-radius: 10px;
    background: #ffffff;
}

.prism-captcha__image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.prism-captcha__image {
    display: block;
    width: 170px;
    height: 56px;
    object-fit: contain;
}

.prism-captcha__input-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.prism-captcha__input {
    width: 100%;
    height: 56px;
    box-sizing: border-box;
    padding: 0 1rem;
    border: 1px solid rgba(15, 76, 58, 0.12);
    border-radius: 10px;
    background: #ffffff;
    color: #082D24;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-align: center;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.prism-captcha__input::placeholder {
    color: #98a39f;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: normal;
}

.prism-captcha__input:hover {
    border-color: rgba(15, 76, 58, 0.22);
}

.prism-captcha__input:focus {
    border-color: rgba(15, 76, 58, 0.45);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.08);
}

.prism-captcha__input:invalid:not(:placeholder-shown) {
    border-color: rgba(180, 60, 60, 0.35);
}


/* ============================================================
   CAPTCHA HINT
   ============================================================ */

.prism-captcha__hint {
    flex: 0 0 auto;
    color: #6f7773;
    font-size: 12px;
    line-height: 1.7;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .prism-captcha {
        padding: 0.875rem;
    }

    .prism-captcha__body {
        flex-wrap: wrap;
        align-items: center;
    }

    .prism-captcha__image-wrap {
        flex: 0 0 170px;
    }

    .prism-captcha__refresh {
        flex: 0 0 34px;
    }

    .prism-captcha__hint {
        flex: 1 1 auto;
        min-width: 120px;
        white-space: normal;
    }

    .prism-captcha__input-wrap {
        flex: 1 1 100%;
        width: 100%;
    }

    .prism-captcha__input {
        height: 52px;
    }
}
