.dnh-prw-wrapper,
.dnh-prw-wrapper * {
    box-sizing: border-box;
}

.dnh-prw-wrapper {
    width: 100%;
    position: relative;
    --dnh-prw-navy: #0d3158;
    --dnh-prw-gold: #f5b21a;
    --dnh-prw-text: #143251;
    --dnh-prw-muted: #64748b;
    --dnh-prw-border: rgba(13, 49, 88, 0.10);
    --dnh-prw-shadow: 0 14px 35px rgba(13, 49, 88, 0.10);
}

.dnh-prw-header {
    text-align: center;
    margin-bottom: 20px;
}

.dnh-prw-title {
    margin: 0;
    color: var(--dnh-prw-navy);
    font-size: 25px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dnh-prw-title-decor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 8px;
    min-height: 14px;
}

.dnh-prw-title-decor span {
    width: 38px;
    height: 1.5px;
    display: block;
    background-color: var(--dnh-prw-gold);
}

.dnh-prw-title-decor i {
    display: inline-flex;
    font-style: normal;
    color: var(--dnh-prw-gold);
    font-size: 11px;
    line-height: 1;
}

.dnh-prw-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.dnh-prw-card {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    padding: 22px 24px 28px;
    background-color: #fff;
    border: 1px solid var(--dnh-prw-border);
    border-radius: 12px;
    box-shadow: var(--dnh-prw-shadow);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 260ms ease, transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.dnh-prw-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(13, 49, 88, 0.14);
    border-color: rgba(13, 49, 88, 0.16);
}

.dnh-prw-card.is-hidden {
    display: none;
}

.dnh-prw-card.is-entering {
    opacity: 0;
    transform: translateY(10px);
}

.dnh-prw-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.dnh-prw-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 7px 18px rgba(13, 49, 88, 0.15);
}

.dnh-prw-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dnh-prw-avatar svg,
.dnh-prw-avatar i {
    width: 42%;
    height: 42%;
    display: inline-flex;
    line-height: 1;
}

.dnh-prw-meta {
    min-width: 0;
}

.dnh-prw-name {
    margin: 0 0 5px;
    color: var(--dnh-prw-navy);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
}

.dnh-prw-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: var(--dnh-prw-gold);
    font-size: 13px;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.dnh-prw-date {
    color: #102744;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 500;
}

.dnh-prw-body {
    position: relative;
    z-index: 1;
    padding: 6px 2px 0;
}

.dnh-prw-text {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--dnh-prw-text);
    font-size: 12.2px;
    line-height: 1.85;
    font-weight: 600;
}

.dnh-prw-quote-left,
.dnh-prw-quote-right {
    position: absolute;
    z-index: 0;
    color: rgba(13, 49, 88, 0.08);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
}

.dnh-prw-quote-left {
    top: -22px;
    left: -4px;
    font-size: 70px;
    line-height: 1;
}

.dnh-prw-quote-right {
    right: 0;
    bottom: -34px;
    font-size: 74px;
    line-height: 1;
}

.dnh-prw-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.dnh-prw-pagination:empty {
    display: none;
}

.dnh-prw-page-btn {
    appearance: none;
    border: 0;
    outline: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: 999px;
    background-color: transparent;
    color: var(--dnh-prw-navy);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    transition: color 220ms ease, background-color 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.dnh-prw-page-btn[data-page] {
    width: 38px;
    padding: 0;
}

.dnh-prw-page-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background-color: rgba(13, 49, 88, 0.08);
}

.dnh-prw-page-btn.is-active {
    color: #fff;
    background-color: var(--dnh-prw-navy);
    box-shadow: 0 10px 20px rgba(13, 49, 88, 0.18);
}

.dnh-prw-page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.dnh-prw-page-btn.dnh-prw-prev,
.dnh-prw-page-btn.dnh-prw-next {
    min-width: auto;
    width: auto;
    padding: 0 6px;
    border-radius: 10px;
}

.dnh-prw-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .dnh-prw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .dnh-prw-card {
        min-height: 285px;
    }
}

@media (max-width: 767px) {
    .dnh-prw-title {
        font-size: 23px;
    }

    .dnh-prw-title-decor span {
        width: 30px;
    }

    .dnh-prw-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dnh-prw-card {
        min-height: auto;
        padding: 20px 20px 25px;
    }

    .dnh-prw-card-top {
        margin-bottom: 17px;
    }

    .dnh-prw-text {
        font-size: 12.5px;
        line-height: 1.75;
    }

    .dnh-prw-pagination {
        gap: 9px;
        margin-top: 26px;
    }

    .dnh-prw-page-btn {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .dnh-prw-page-btn[data-page] {
        width: 34px;
    }
}

/* Front-end story form */
.dnh-prw-story-box {
    width: 100%;
    margin: 0 0 48px;
}

.dnh-prw-story-toggle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 42px;
}

.dnh-prw-form-toggle,
.dnh-prw-submit {
    appearance: none;
    border: 0;
    outline: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 26px;
    min-height: 54px;
    background-color: #2d578c;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    border-radius: 0;
    box-shadow: 0 12px 24px rgba(45, 87, 140, 0.18);
    transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.dnh-prw-form-toggle:hover,
.dnh-prw-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(45, 87, 140, 0.24);
}

.dnh-prw-form-toggle:focus-visible,
.dnh-prw-submit:focus-visible,
.dnh-prw-rating-picker button:focus-visible {
    outline: 3px solid rgba(245, 178, 26, 0.65);
    outline-offset: 3px;
}

.dnh-prw-form-panel {
    max-width: 1180px;
    margin: 0 auto 34px;
    padding: 0;
    background: #ffffff;
    animation: dnhPrwFormIn 260ms ease both;
}

.dnh-prw-form-panel[hidden] {
    display: none !important;
}

@keyframes dnhPrwFormIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dnh-prw-form {
    width: 100%;
}

.dnh-prw-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.dnh-prw-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.dnh-prw-field {
    display: block;
    width: 100%;
    margin: 0 0 24px;
}

.dnh-prw-field > span:first-child {
    display: none;
}

.dnh-prw-field input:not([type="file"]),
.dnh-prw-field textarea {
    width: 100%;
    display: block;
    border: 1px solid #d0d5dd;
    border-radius: 3px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    padding: 12px 12px;
    box-shadow: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.dnh-prw-field input:not([type="file"]) {
    min-height: 37px;
}

.dnh-prw-field textarea {
    min-height: 150px;
    resize: vertical;
}

.dnh-prw-field input:not([type="file"]):focus,
.dnh-prw-field textarea:focus {
    border-color: #2d578c;
    box-shadow: 0 0 0 3px rgba(45, 87, 140, 0.12);
    outline: 0;
}

.dnh-prw-field input::placeholder,
.dnh-prw-field textarea::placeholder {
    color: #111827;
    opacity: 1;
}

.dnh-prw-file-wrap {
    display: block;
    width: 100%;
    border: 1px solid #aeb6c2;
    background: #ffffff;
    padding: 8px 8px;
    min-height: 43px;
}

.dnh-prw-file-wrap input[type="file"] {
    width: 100%;
    font-size: 15px;
    color: #111827;
}

.dnh-prw-rating-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 24px;
    color: #111827;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
}

.dnh-prw-rating-picker {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.dnh-prw-rating-picker button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #d0d5dd;
    cursor: pointer;
    padding: 0 1px;
    font-size: 29px;
    line-height: 1;
    transition: color 180ms ease, transform 180ms ease;
}

.dnh-prw-rating-picker button.is-active {
    color: #f5b21a;
}

.dnh-prw-rating-picker button:hover {
    transform: translateY(-1px) scale(1.04);
}

.dnh-prw-human-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    color: #111827;
}

.dnh-prw-human-check input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #2d578c;
}

.dnh-prw-submit {
    min-height: 54px;
    margin: 0;
}

.dnh-prw-submit:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.dnh-prw-form-message {
    min-height: 22px;
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.dnh-prw-form-message.is-success {
    color: #087443;
}

.dnh-prw-form-message.is-error {
    color: #b42318;
}

@media (max-width: 767px) {
    .dnh-prw-story-toggle-wrap {
        margin-bottom: 28px;
    }

    .dnh-prw-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dnh-prw-form-toggle,
    .dnh-prw-submit {
        width: 100%;
        max-width: 320px;
        font-size: 14px;
    }

    .dnh-prw-rating-field {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* v1.2 improved story form UX */
.dnh-prw-story-box {
    position: relative;
}

.dnh-prw-form-toggle {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.dnh-prw-form-toggle::after,
.dnh-prw-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transform: translateX(-120%);
    transition: transform 520ms ease;
    z-index: -1;
}

.dnh-prw-form-toggle:hover::after,
.dnh-prw-submit:hover::after {
    transform: translateX(120%);
}

.dnh-prw-form-panel.is-open {
    border: 1px solid rgba(13, 49, 88, 0.10);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 20px 50px rgba(13, 49, 88, 0.09);
}

.dnh-prw-form .dnh-prw-field input:not([type="file"]),
.dnh-prw-form .dnh-prw-field textarea,
.dnh-prw-file-wrap {
    min-height: 48px;
    border-radius: 6px;
}

.dnh-prw-form .dnh-prw-field textarea {
    min-height: 170px;
}

.dnh-prw-file-name {
    display: inline-flex;
    margin-top: 8px;
    color: #475467;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}

.dnh-prw-form-message {
    padding: 0;
}

.dnh-prw-form-message.is-success,
.dnh-prw-form-message.is-error {
    padding: 12px 14px;
    border-radius: 8px;
}

.dnh-prw-form-message.is-success {
    background: #ecfdf3;
}

.dnh-prw-form-message.is-error {
    background: #fef3f2;
}

@media (max-width: 767px) {
    .dnh-prw-form-panel.is-open {
        padding: 18px;
    }
}

/* v1.3 front-end review form, screenshot-style full-width bar */
.dnh-prw-form-layout-full .dnh-prw-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
}

.dnh-prw-form-layout-split .dnh-prw-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.dnh-prw-story-box .dnh-prw-form-panel.is-open {
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.dnh-prw-form-panel.is-open .dnh-prw-form {
    animation: dnhPrwFormSlideDown 260ms ease both;
}

@keyframes dnhPrwFormSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dnh-prw-story-box .dnh-prw-form input[type="text"],
.dnh-prw-story-box .dnh-prw-form input[type="email"],
.dnh-prw-story-box .dnh-prw-form textarea,
.dnh-prw-story-box .dnh-prw-file-wrap {
    border-radius: 3px;
    min-height: 39px;
}

.dnh-prw-story-box .dnh-prw-form textarea {
    min-height: 150px;
}

.dnh-prw-story-box .dnh-prw-rating-picker button {
    color: #f5b21a;
}

.dnh-prw-story-box .dnh-prw-rating-picker button:not(.is-active) {
    color: #d0d5dd;
}

@media (max-width: 767px) {
    .dnh-prw-form-layout-split .dnh-prw-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
