/* ==========================================
   FEEDBACK SECTION (HOMEPAGE)
   Feedback Display and Submit Forms
   ========================================== */

.feedback-section-home .section-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    position: relative;
}

.feedback-section-home .section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-yellow);
    margin: 0.5rem auto;
}

.feedback-section-home .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 0 3rem 0;
}

/* Two Column Layout for Feedback Section */
.feedback-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Left Column - Feedback Display */
.feedback-display-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.home-feedback-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

/* Custom scrollbar for feedback display */
.home-feedback-grid::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.home-feedback-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.home-feedback-grid::-webkit-scrollbar-thumb {
    background: var(--accent-yellow);
    border-radius: 4px;
}

.home-feedback-grid::-webkit-scrollbar-thumb:hover {
    background: #e0a800;
}

.home-feedback-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.home-feedback-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.feedback-box-avatar {
    margin-bottom: 0.875rem;
    display: flex;
    justify-content: center;
}

.feedback-box-avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feedback-box-initials {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.feedback-box-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
    justify-content: center;
}

.feedback-box-stars {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.feedback-box-stars i {
    color: #fbbf24;
    font-size: 0.8rem;
}

.feedback-box-message {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    padding: 0 0.5rem;
}

.feedback-box-message::before {
    content: '"';
    color: #9ca3af;
    font-size: 1.5rem;
    line-height: 0;
    vertical-align: -0.4rem;
    margin-right: 0.2rem;
}

.feedback-box-message::after {
    content: '"';
    color: #9ca3af;
    font-size: 1.5rem;
    line-height: 0;
    vertical-align: -0.4rem;
    margin-left: 0.2rem;
}

.feedback-box-author {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.feedback-box-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.verified-badge {
    color: #3b82f6;
    font-size: 0.75rem;
}

.section-cta {
    text-align: center;
    margin-bottom: 4rem;
}

.btn-view-more {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-view-more:hover {
    background-color: #e6ac00;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.loading-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
    font-size: 1rem;
    grid-column: 1 / -1;
}

/* Submit Feedback Form (Sign-in Required) */
/* Right Column - Feedback Form */
.feedback-form-column {
    position: sticky;
    top: 2rem;
}

.submit-feedback-container {
    margin-bottom: 0;
}

.feedback-signin-prompt {
    background: #ffffff;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
}

.feedback-signin-prompt i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.feedback-signin-prompt p {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
}

.btn-signin-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: #4285f4;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-signin-feedback:hover {
    background: #3367d6;
    transform: translateY(-2px);
}

.feedback-form-container {
    background: #ffffff;
    border: 2px solid var(--accent-yellow);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

.feedback-form-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2rem;
}

/* Signed-in Status Badge */
#userSignedInStatus {
    background: #d1fae5;
    color: #059669;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

#userSignedInStatus i {
    margin-right: 0.5rem;
}

/* Form Row */
.feedback-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feedback-form-group {
    position: relative;
}

/* Verified Badge */
.verified-badge {
    display: none;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #059669;
    font-size: 1rem;
}

/* Input Fields */
.feedback-form-group input[type="text"],
.feedback-form-group input[type="email"],
#submitFeedbackForm textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #111827;
    background: #f9fafb;
    transition: all 0.2s;
    font-family: inherit;
}

.feedback-form-group input:focus,
#submitFeedbackForm textarea:focus {
    outline: none;
    border-color: #0a2463;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
}

.feedback-form-group input::placeholder,
#submitFeedbackForm textarea::placeholder {
    color: #9ca3af;
}

/* Star Rating */
.star-rating-input {
    display: flex;
    gap: 0.5rem;
    font-size: 1.75rem;
    margin: 1rem 0;
    justify-content: center;
}

.star-rating-input i {
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.15s;
}

.star-rating-input i:hover,
.star-rating-input i.active {
    color: #fbbf24;
}

/* Textarea */
#submitFeedbackForm textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 0.75rem;
}

/* Google Sign-In Button */
.google-signin-btn-feedback {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.7rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.google-signin-btn-feedback:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.google-signin-btn-feedback svg {
    flex-shrink: 0;
}

/* Submit Button */
.btn-submit-feedback {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--accent-yellow);
    color: var(--primary-blue);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-feedback:hover {
    background: #e6ac00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-submit-feedback:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Responsive for Feedback Section */
@media (max-width: 768px) {
    .feedback-section-home {
        padding: 3rem 0;
    }

    .feedback-section-home .section-title {
        font-size: 2rem;
    }

    .feedback-section-home .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .home-feedback-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .home-feedback-card {
        padding: 1.5rem;
    }
}

/* Responsive for Submit Feedback Form */
@media (max-width: 968px) {
    /* Stack two columns on tablet/mobile */
    .feedback-two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feedback-form-column {
        position: relative;
        top: 0;
    }

    .home-feedback-grid {
        max-height: 400px;
    }

    .feedback-form-container {
        padding: 1.5rem;
    }

    .feedback-form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .star-rating-input {
        font-size: 1.75rem;
        justify-content: center;
    }
}

/* ==========================================
   MINIMALIST TOAST NOTIFICATION WITH BOAT ANIMATION
   ========================================== */

.custom-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #0a2463 0%, #1e3d72 100%);
    color: white;
    padding: 2rem 3rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    text-align: center;
    min-width: 300px;
}

.custom-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Wave decoration */
.custom-toast::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 193, 7, 0.3) 25%,
        rgba(255, 193, 7, 0.5) 50%,
        rgba(255, 193, 7, 0.3) 75%,
        transparent 100%
    );
    border-radius: 0 0 16px 16px;
}

/* Backdrop overlay */
.toast-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast-backdrop.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .custom-toast {
        padding: 1.5rem 2rem;
        min-width: 280px;
        max-width: 90%;
        font-size: 1rem;
    }

    .custom-toast::before {
        font-size: 2rem;
        top: -25px;
    }
}
