/* =========================================
   FEEDBACK PAGE CSS
   ========================================= */

/* =========================================
   ADMIN DASHBOARD - FEEDBACK BUTTON
   ========================================= */

.feedback-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #7c3aed;
    color: #ffffff;

    text-decoration: none;

    padding: 12px 20px;

    border-radius: 8px;

    font-size: 15px;
    font-weight: bold;

    transition: 0.2s;
}

.feedback-admin-btn:hover {
    background: #6d28d9;
    color: #ffffff;
    transform: translateY(-1px);
}

.feedback-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 55px 20px 90px;
}


/* =========================================
   HEADING
   ========================================= */

.feedback-heading {
    text-align: center;
    margin-bottom: 35px;
}

.feedback-heading .small-title {
    color: #2563eb;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.feedback-heading h1 {
    font-size: 38px;
    margin: 8px 0 10px;
    color: #111827;
}

.feedback-heading p {
    color: #6b7280;
    max-width: 650px;
    margin: 0 auto;
}

.anonymous-note {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 15px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================
   SUCCESS / ERROR
   ========================================= */

.feedback-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 15px 18px;
    border-radius: 9px;
    margin-bottom: 25px;
    font-weight: 600;
}

.feedback-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 15px 18px;
    border-radius: 9px;
    margin-bottom: 25px;
    font-weight: 600;
}


/* =========================================
   FEEDBACK CARD
   ========================================= */

.feedback-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
}

.feedback-card h2 {
    font-size: 22px;
    margin: 0 0 6px;
    color: #111827;
}

.card-description {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 25px;
}


/* =========================================
   COURSE INFORMATION
   ========================================= */

.feedback-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feedback-field {
    width: 100%;
}

.feedback-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
    color: #374151;
}

.feedback-field select {
    width: 100%;
    height: 45px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    margin: 0;
}

.feedback-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* =========================================
   RATING ROW
   ========================================= */

.rating-row {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 20px 0;

    border-bottom: 1px solid #e5e7eb;
}

.rating-row:last-of-type {
    border-bottom: none;
}

.rating-question {
    flex: 1;
}

.rating-question strong {
    display: block;
    color: #111827;
    font-size: 15px;
    margin-bottom: 4px;
}

.rating-question span {
    display: block;
    color: #6b7280;
    font-size: 13px;
}


/* =========================================
   RATING BUTTONS
   ========================================= */

.rating-options {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}


/* Hide actual radio button */

.rating-options input[type="radio"] {
    display: none;
}


/* Rating number */

.rating-options label {
    display: block;

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 0;

    cursor: pointer;
}

.rating-options label span {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: #ffffff;
    color: #374151;

    font-size: 14px;
    font-weight: bold;

    transition: all 0.2s;
}

.rating-options label:hover span {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}


/* Selected rating */

.rating-options input[type="radio"]:checked + span {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}


/* =========================================
   RATING SCALE
   ========================================= */

.rating-scale {
    display: flex;
    justify-content: space-between;

    margin-top: 15px;

    color: #6b7280;
    font-size: 12px;
}


/* =========================================
   FEEDBACK TEXTAREA
   ========================================= */

.feedback-card textarea {
    width: 100%;

    min-height: 150px;

    padding: 13px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: #ffffff;

    color: #111827;

    font-size: 15px;

    resize: vertical;

    margin: 0 0 8px;
}

.feedback-card textarea:focus {
    outline: none;

    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.required-note {
    color: #6b7280;
    font-size: 12px;
}


/* =========================================
   SUBMIT BUTTON
   ========================================= */

.feedback-submit {
    width: 100%;
    text-align: right;
}

.submit-feedback-btn {
    background: #2563eb;
    color: #ffffff;

    border: none;

    padding: 14px 24px;

    border-radius: 8px;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.submit-feedback-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .feedback-wrapper {
        padding: 40px 15px 70px;
    }

    .feedback-heading h1 {
        font-size: 30px;
    }

    .feedback-card {
        padding: 22px;
    }

    .feedback-fields {
        grid-template-columns: 1fr;
    }

    .rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .rating-options {
        width: 100%;
        justify-content: flex-start;
    }

    .rating-options label,
    .rating-options label span {
        width: 42px;
        height: 42px;
    }

    .rating-scale {
        flex-direction: column;
        gap: 5px;
    }

    .feedback-submit {
        text-align: center;
    }

    .submit-feedback-btn {
        width: 100%;
    }
}