/* ==========================================================================
Libreng Sakay Feedback Survey
Honeycomb / Applicant Portal Theme
========================================================================== */

.feedback-page {
    --feedback-yellow: #ffc107;
    --feedback-yellow-dark: #d99f00;
    --feedback-yellow-soft: rgba(255, 193, 7, 0.12);
    --feedback-yellow-border: rgba(255, 193, 7, 0.28);
    --feedback-text: #212529;
    --feedback-muted: #6c757d;
}

/* ==========================================================================
Page Header
========================================================================== */

.feedback-header {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 193, 7, 0.1),
        rgba(255, 255, 255, 1) 60%
    );
}

.feedback-header::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -70px;
    width: 190px;
    height: 190px;
    border: 30px solid rgba(255, 193, 7, 0.08);
    transform: rotate(30deg);
    border-radius: 24px;
    pointer-events: none;
}

.feedback-header .card-body {
    position: relative;
    z-index: 1;
}

.feedback-date-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--feedback-yellow-border);
    border-radius: 16px;
    min-width: 210px;
}

.feedback-date-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--feedback-yellow-soft);
    color: #b78103;
    font-size: 1.15rem;
}

/* ==========================================================================
Survey Information
========================================================================== */

.feedback-info-card {
    overflow: hidden;
}

.feedback-info-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--feedback-yellow-soft);
    color: #b78103;
    font-size: 1.2rem;
}

.feedback-applicant {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.875rem;
}

.feedback-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--feedback-yellow-soft);
    border: 1px solid var(--feedback-yellow-border);
    border-radius: 14px;
    color: #5f4a00;
    font-size: 0.9rem;
    line-height: 1.6;
}

.feedback-notice-icon {
    flex-shrink: 0;
    font-size: 1.15rem;
    color: #b78103;
}

/* ==========================================================================
Question Cards
========================================================================== */

.feedback-question {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    border: 1px solid transparent !important;
}

.feedback-question:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.08) !important;
}

.feedback-question:focus-within {
    border-color: var(--feedback-yellow-border) !important;
}

.question-number {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--feedback-yellow-soft);
    color: #9a6d00;
    font-weight: 700;
    font-size: 0.9rem;
}

.question-label {
    color: var(--feedback-text);
    line-height: 1.55;
}

/* ==========================================================================
Rating
========================================================================== */

.rating-wrapper {
    width: 100%;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.rating-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.rating-group .btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.rating-btn {
    flex: 1 1 0;
    min-width: 48px;
    min-height: 54px;
    padding: 8px 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dee2e6;
    border-radius: 12px;

    background: #fff;
    color: #495057;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.rating-btn:hover {
    border-color: var(--feedback-yellow);
    background: var(--feedback-yellow-soft);
    color: #795900;
    transform: translateY(-2px);
}

.rating-number {
    font-size: 1.05rem;
    font-weight: 700;
}

.rating-group .btn-check:checked + .rating-btn {
    background: var(--feedback-yellow);
    border-color: var(--feedback-yellow);
    color: #212529;
    box-shadow: 0 0.35rem 0.8rem rgba(255, 193, 7, 0.25);
}

.rating-group .btn-check:focus-visible + .rating-btn {
    outline: 3px solid rgba(255, 193, 7, 0.35);
    outline-offset: 2px;
}

/* ==========================================================================
Radio Options
========================================================================== */

.options-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feedback-option {
    position: relative;
}

.feedback-option .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feedback-option .form-check-label {
    width: 100%;
    min-height: 50px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 15px;

    border: 1px solid #dee2e6;
    border-radius: 12px;

    background: #fff;
    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.feedback-option .form-check-label:hover {
    background: var(--feedback-yellow-soft);
    border-color: var(--feedback-yellow-border);
}

.option-radio {
    width: 22px;
    height: 22px;
    min-width: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #adb5bd;
    border-radius: 50%;

    color: transparent;

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}

.feedback-option .form-check-input:checked + .form-check-label {
    background: var(--feedback-yellow-soft);
    border-color: var(--feedback-yellow);
}

.feedback-option .form-check-input:checked + .form-check-label .option-radio {
    background: var(--feedback-yellow);
    border-color: var(--feedback-yellow);
    color: #212529;
}

/* ==========================================================================
Inputs
========================================================================== */

.feedback-input {
    min-height: 48px;
    border-radius: 12px;
    border-color: #dee2e6;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.feedback-input:focus {
    border-color: var(--feedback-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.15);
}

textarea.feedback-input {
    min-height: 120px;
    resize: vertical;
}

.feedback-input::placeholder {
    color: #adb5bd;
}

.feedback-error {
    min-height: 0;
    margin-top: 6px;
}

/* ==========================================================================
Submit Card
========================================================================== */

.feedback-submit-card {
    background: linear-gradient(
        135deg,
        rgba(255, 193, 7, 0.08),
        rgba(255, 255, 255, 1)
    );
}

.submit-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: var(--feedback-yellow-soft);
    color: #a87300;

    font-size: 1.2rem;
}

#btn-submit-feedback {
    min-width: 190px;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

#btn-submit-feedback:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(255, 193, 7, 0.25);
}

/* ==========================================================================
Empty State
========================================================================== */

.feedback-empty-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: #f8f9fa;
    color: #adb5bd;

    font-size: 2rem;
}

/* ==========================================================================
Responsive
========================================================================== */

@media (max-width: 767.98px) {
    .feedback-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .feedback-header .card-body {
        padding: 1.5rem !important;
    }

    .feedback-date-card {
        width: 100%;
        min-width: 0;
    }

    .feedback-question .card-body {
        padding: 1.25rem !important;
    }

    .rating-group {
        gap: 6px;
    }

    .rating-btn {
        min-width: 42px;
        min-height: 50px;
        padding: 6px;
    }

    .rating-number {
        font-size: 1rem;
    }

    .feedback-submit-card .card-body {
        padding: 1.25rem !important;
    }

    #btn-submit-feedback {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .feedback-header h1 {
        font-size: 1.45rem;
    }

    .rating-labels {
        font-size: 0.72rem;
    }

    .rating-group {
        gap: 5px;
    }

    .rating-btn {
        min-width: 0;
        min-height: 48px;
    }

    .question-number {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .feedback-notice {
        font-size: 0.84rem;
    }
}
