.tattoo-story {
    padding: 0 0 110px;
}

.tattoo-story-container {
    position: relative;
    width: min(92%, 1200px);
    margin: 0 auto;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 192, 138, 0.22);
    border-radius: 24px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 24px 60px rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
}

.tattoo-story-container::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: transparent;
    content: "";
}

.tattoo-story-container > * {
    position: relative;
    z-index: 1;
}

.tattoo-story__intro {
    padding: 50px 44px;
    text-align: center;
}

.tattoo-story__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #E8E4DA;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tattoo-story__title {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 20px;
    color: #E8E4DA;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 40.96px);
    line-height: 1.15;
}

.tattoo-story__title::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4c08a, transparent);
    content: "";
    transform: translateX(-50%);
}

.tattoo-story__subtitle {
    max-width: 760px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.55;
}

.tattoo-story__toggle,
.tattoo-story-form__submit {
    min-height: 46px;
    padding: 11px 22px;
    color: #E8E4DA;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(228, 201, 93, 0.72);
    border-radius: 999px;
    transition: color 180ms ease, background-color 180ms ease,
        box-shadow 180ms ease, transform 180ms ease;
}

.tattoo-story__toggle i {
    margin-right: 8px;
    font-size: 12px;
}

.tattoo-story__toggle:hover,
.tattoo-story__toggle:focus-visible,
.tattoo-story-form__submit:hover,
.tattoo-story-form__submit:focus-visible {
    color: #071b13;
    background: #e4c95d;
    box-shadow: 0 0 18px rgba(228, 201, 93, 0.22);
    transform: translateY(-1px);
}

.tattoo-story__panel[hidden] {
    display: none;
}

.tattoo-story__panel {
    padding: 42px 44px 50px;
    border-top: 1px solid rgba(212, 192, 138, 0.25);
    animation: tattoo-story-open 280ms ease both;
}

@keyframes tattoo-story-open {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tattoo-story-form {
    max-width: 850px;
    margin: 0 auto;
}

.tattoo-story-form__group {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.tattoo-story-form__group > label,
.tattoo-story-form__group > legend {
    display: block;
    margin-bottom: 9px;
    color: #E8E4DA;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.tattoo-story-form__group label span {
    color: rgba(255, 255, 255, 0.65);
    font-family: "Times New Roman", serif;
    font-size: 14px;
    font-weight: 400;
}

.tattoo-story-form__group legend span {
    color: #E8E4DA;
}

.tattoo-story-form input[type="text"],
.tattoo-story-form input[type="date"],
.tattoo-story-form input[type="file"],
.tattoo-story-form textarea {
    width: 100%;
    color: #fff;
    font: inherit;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(212, 192, 138, 0.32);
    border-radius: 12px;
    outline: none;
}

.tattoo-story-form input[type="text"],
.tattoo-story-form input[type="date"] {
    min-height: 50px;
    padding: 13px 15px;
}

.tattoo-story-form input[type="file"] {
    min-height: 50px;
    padding: 8px 10px;
}

.tattoo-story-form input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 14px;
    color: #071b13;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: #e4c95d;
    border: 0;
    border-radius: 999px;
}

.tattoo-story-form textarea {
    min-height: 190px;
    padding: 14px 15px;
    line-height: 1.55;
    resize: vertical;
}

.tattoo-story-form input:focus,
.tattoo-story-form textarea:focus {
    border-color: rgba(230, 196, 106, 0.82);
    box-shadow: 0 0 0 3px rgba(230, 196, 106, 0.10);
}

.tattoo-story-form input::placeholder,
.tattoo-story-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.44);
}

.tattoo-story-form small {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
}

.tattoo-story-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(210px, 0.65fr);
    gap: 22px;
}

.tattoo-story-form__stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.tattoo-story-form__stars input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.tattoo-story-form__stars label {
    color: rgba(228, 201, 93, 0.32);
    font-size: 30px;
    cursor: pointer;
    transition: color 160ms ease, transform 160ms ease;
}

.tattoo-story-form__stars label:hover,
.tattoo-story-form__stars label:hover ~ label,
.tattoo-story-form__stars input:checked ~ label {
    color: #E8E4DA;
}

.tattoo-story-form__stars label:hover {
    transform: translateY(-2px);
}

.tattoo-story-form__stars input:focus-visible + label {
    outline: 2px solid #e6c46a;
    outline-offset: 3px;
}

.tattoo-story-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 28px;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.55;
}

.tattoo-story-form__consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #e4c95d;
}

.tattoo-story-form__consent a {
    color: #E8E4DA;
    text-underline-offset: 3px;
}

.tattoo-story-form__website {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.tattoo-story-form__submit {
    min-width: 260px;
}

.tattoo-story-form__submit:disabled {
    cursor: wait;
    opacity: 0.6;
}

.tattoo-story-form__status {
    min-height: 24px;
    margin: 20px 0 0;
    line-height: 1.5;
}

.tattoo-story-form__status.is-success {
    padding: 18px 20px;
    color: #f4f0e5;
    background: rgba(18, 60, 44, 0.82);
    border: 1px solid rgba(228, 201, 93, 0.72);
    border-radius: 14px;
}

.tattoo-story-form__status.is-error {
    color: #f2aaa4;
}

@media (max-width: 767px) {
    .tattoo-story {
        padding-bottom: 60px;
    }

    .tattoo-story-container {
        width: 96%;
        border-radius: 20px;
    }

    .tattoo-story__intro {
        padding: 34px 18px;
    }

    .tattoo-story__title {
        font-size: clamp(25px, 7.5vw, 30px);
    }

    .tattoo-story__subtitle {
        font-size: 14px;
    }

    .tattoo-story__toggle,
    .tattoo-story-form__submit {
        width: min(100%, 320px);
    }

    .tattoo-story__panel {
        padding: 30px 18px 36px;
    }

    .tattoo-story-form__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tattoo-story-form__stars {
        justify-content: center;
    }

    .tattoo-story-form__stars label {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tattoo-story__panel,
    .tattoo-story__toggle,
    .tattoo-story-form__submit,
    .tattoo-story-form__stars label {
        animation: none !important;
        transition: none !important;
    }
}

