/* Per the design system's readme "Screen hierarchy rule": header title stays smaller
   (2xl) than the screen's own page title (4xl, see .screen-title below). This overrides
   the site-wide header's x-large (3xl) size — scoped to feedback pages only, since this
   stylesheet isn't loaded on the rest of the site. */
header .inner .right h4 {
    font-size: 20px;
}

/* Gives the form/detail screens' text, fields and buttons room from the viewport
   edges — matches the header's own 32px horizontal padding. */
.feedback-main {
    padding: 10px 32px 30px;
    box-sizing: border-box;
}

/* Shared screen chrome (feedback form + feedback detail + feedback track) */
.screen-title {
    font-size: xx-large;
    font-weight: 900;
    text-align: center;
    margin: 0 0 20px;
}

.screen-title i {
    margin-left: 10px;
}

.screen-intro {
    font-weight: 200;
    opacity: .5;
    line-height: 1.8;
    font-size: 0.85rem;
    margin: 0 0 30px;
}

.track-intro {
    text-align: center;
}

.track-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
}

.track-link a {
    color: var(--bg-accent);
    font-weight: 700;
}

.track-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.track-actions .btn-back-home {
    flex: 1;
    justify-content: center;
    margin-top: 0;
}

/* Feedback Form Styles */
.feedback-container {
    max-width: 500px;
    margin: 0 auto;
}

.field-container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.field-container label,
.field-label-row label {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--primary-color);
}

.field-error-msg {
    color: #c0392b;
    font-size: 13px;
    font-weight: bold;
}

.optional-label {
    font-size: x-small;
    opacity: .7;
    font-weight: 200;
}

.required-star {
    color: #c0392b;
    margin-left: 3px;
}

.field-container input[type="text"],
.field-container textarea {
    width: 100%;
    font-family: farhangsharp, tahoma, sans-serif;
    padding: 15px;
    border: 2px solid #000;
    border-radius: 0;
    box-sizing: border-box;
    font-size: 0.85rem;
    outline: none;
}

.field-container input[type="text"] {
    height: 44px;
}

#track-code {
    text-align: right;
}

.field-container textarea {
    height: 140px;
    resize: vertical;
}

.field-container input::placeholder,
.field-container textarea::placeholder {
    opacity: .7;
    font-weight: 200;
}

.field-container input:focus,
.field-container textarea:focus {
    border-color: var(--bg-accent);
}

.feedback-submit {
    display: block;
    width: 100%;
    background-color: var(--bg-accent);
    color: var(--fg-accent);
    font-family: farhangsharp, tahoma, sans-serif;
    font-weight: 900;
    border: 2px solid #000;
    outline: none;
    padding: 20px;
    box-shadow: 3px -3px 0 #000;
    margin-top: 8px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0;
}

.feedback-submit:hover {
    background-color: #2a6b38;
}

/* Feedback Detail Screen */
.detail-title-row {
    text-align: center;
    margin-bottom: 20px;
}

.tracking-code-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 200px;
    height: 45px;
    box-sizing: border-box;
    background-color: var(--bg-accent);
    color: var(--fg-accent);
    border: 2px solid #000;
    box-shadow: 3px -3px 0 #000;
    padding: 0 15px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.code-value {
    font-size: 20px;
    font-weight: 900;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 2px solid #000;
    font-size: 0.85rem;
}

.info-label {
    font-weight: 800;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
}

.info-label i {
    opacity: .7;
}

.info-value {
    text-align: left;
    direction: ltr;
}

.submitter-name {
    font-weight: 800;
    display: block;
    direction: rtl;
}

.submitter-mobile {
    opacity: .7;
    font-size: x-small;
    direction: ltr;
    display: inline-block;
    margin-top: 3px;
}

.anonymous-badge {
    opacity: .7;
    font-size: 0.85rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: #f0f0f0;
    border: 2px solid #000;
    padding: 3px 15px;
    font-weight: bold;
    font-size: 13px;
}

.detail-body-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.detail-body-row .info-value {
    direction: rtl;
    text-align: right;
    width: 100%;
}

.feedback-content {
    margin: 0;
    line-height: 1.8;
    font-weight: 400;
}

.admin-result-box {
    margin-top: 20px;
    background-color: #f0f0f0;
    border: 2px solid #000;
    padding: 15px;
}

.admin-result-box h4 {
    margin: 0 0 8px;
    font-weight: 900;
    font-size: 15px;
}

.result-content {
    margin: 0;
    line-height: 1.8;
    font-weight: 400;
}

.thank-you-box {
    margin-top: 30px;
    text-align: center;
}

.thank-you-box p {
    margin: 0 0 7px;
    font-size: x-small;
    opacity: .7;
}

.icon-heart {
    color: #c0392b;
    font-size: 18px;
}

.back-btn-wrap {
    text-align: center;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--fg-accent);
    color: var(--primary-color);
    border: 2px solid #000;
    box-shadow: 3px -3px 0 #000;
    border-radius: 0;
    font-family: farhangsharp, tahoma, sans-serif;
    font-weight: 900;
    font-size: 14px;
    padding: 10px 20px;
    text-decoration: none;
    margin-top: 30px;
    cursor: pointer;
}
