/* ============================================================
   testimonials.css - Hijrah Travel Lombok
   ============================================================ */
:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-gray: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: 'Poppins', sans-serif; background: var(--bg-gray); color: var(--text-dark); }
a { text-decoration: none; color: inherit; }

/* NAVBAR */
.navbar { background: white; box-shadow: 0 2px 12px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo img { height: 40px; }
.logo span { font-weight: 700; font-size: 1.1rem; color: var(--text-dark); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-gray); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: 600; }
.back-link-mobile { display: none; color: var(--primary); font-weight: 600; font-size: 0.85rem; text-decoration: none; align-items: center; gap: 0.4rem; white-space: nowrap; }

/* HERO */
.hero { background: linear-gradient(135deg, #007bff 0%, #0056b3 60%, #003d80 100%); color: white; padding: 5rem 1.5rem 4rem; text-align: center; }
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 1rem; }
.hero p { font-size: 1.05rem; opacity: 0.9; max-width: 550px; margin: 0 auto; line-height: 1.8; }

/* STATS BAR */
.stats-bar { background: white; padding: 2rem 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.stats-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; gap: 4rem; }
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-lbl { font-size: 0.82rem; color: var(--text-gray); margin-top: 0.25rem; }

/* RATING SUMMARY */
.rating-summary { max-width: 1200px; margin: 3rem auto 0; padding: 0 1.5rem; display: flex; align-items: center; gap: 3rem; }
.rating-big { text-align: center; flex-shrink: 0; }
.rating-big .number { font-size: 5rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.rating-big .stars { color: #f59e0b; font-size: 1.5rem; margin: 0.5rem 0; }
.rating-big .from { font-size: 0.85rem; color: var(--text-gray); }
.rating-bars { flex: 1; }
.rating-bar-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.rating-bar-label { font-size: 0.82rem; color: var(--text-gray); width: 30px; text-align: right; flex-shrink: 0; }
.rating-bar-track { flex: 1; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #f59e0b; border-radius: 4px; }
.rating-bar-pct { font-size: 0.78rem; color: #94a3b8; width: 36px; flex-shrink: 0; }

/* SECTION */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.badge-label { display: inline-block; background: #eff6ff; color: var(--primary); padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.75rem; }
.section-title { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); }

/* TESTIMONIALS GRID */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* TESTIMONIAL CARD */
.testimonial-card { background: white; border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.testimonial-card::before { content: '\201C'; position: absolute; top: -10px; right: 20px; font-size: 8rem; color: rgba(0,0,0,0.04); font-family: Georgia, serif; line-height: 1; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.card-accent { height: 4px; border-radius: 4px; margin-bottom: 1.5rem; }
.card-user { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.user-avatar { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.user-avatar-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.user-name { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
.user-location { font-size: 0.78rem; color: #94a3b8; margin-top: 1px; }
.user-location i { margin-right: 3px; }
.card-stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 1rem; letter-spacing: 1px; }
.card-review { font-size: 0.88rem; color: #475569; line-height: 1.8; flex: 1; font-style: italic; }
.card-package { margin-top: 1.25rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.package-tag { display: inline-flex; align-items: center; gap: 0.4rem; background: #f8fafc; border: 1px solid var(--border); padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.77rem; color: var(--text-gray); font-weight: 500; }
.card-date { margin-left: auto; font-size: 0.75rem; color: #94a3b8; }

/* FEATURED CARD */
.testimonial-card.featured { grid-column: span 2; background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); color: white; }
.testimonial-card.featured::before { color: rgba(255,255,255,0.08); }
.testimonial-card.featured .card-review { color: rgba(255,255,255,0.9); }
.testimonial-card.featured .user-name { color: white; }
.testimonial-card.featured .user-location { color: rgba(255,255,255,0.7); }
.testimonial-card.featured .card-stars { color: #fde68a; }
.testimonial-card.featured .package-tag { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); }
.testimonial-card.featured .card-date { color: rgba(255,255,255,0.6); }

/* FORM ULASAN */
.review-form-section { background: white; padding: 4rem 0; border-top: 1px solid var(--border); }
.review-form-wrapper { max-width: 700px; margin: 0 auto; }
.review-form-header { text-align: center; margin-bottom: 2rem; }
.review-form-header h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.review-form-header p { color: var(--text-gray); }

.alert { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.75rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.review-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.review-form .form-group { margin-bottom: 1.25rem; }
.review-form .form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.review-form .form-group input,
.review-form .form-group select,
.review-form .form-group textarea { width: 100%; padding: 0.85rem 1rem; border: 2px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 0.95rem; transition: border 0.2s; background: #fafafa; }
.review-form .form-group input:focus,
.review-form .form-group select:focus,
.review-form .form-group textarea:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(0,123,255,0.1); }
.required { color: #dc3545; }

/* STAR RATING INPUT */
.star-rating { display: flex; flex-direction: row-reverse; gap: 0.25rem; }
.star-rating input { display: none; }
.star-rating label { font-size: 2rem; color: #d1d5db; cursor: pointer; transition: color 0.2s; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f59e0b; }

/* AVATAR UPLOAD */
.avatar-upload-area { display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem; border: 2px dashed var(--border); border-radius: 12px; background: #fafafa; }
.avatar-preview { width: 70px; height: 70px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #94a3b8; overflow: hidden; flex-shrink: 0; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-info p { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.avatar-upload-info small { font-size: 0.78rem; color: var(--text-gray); display: block; margin-bottom: 0.75rem; }
.btn-upload { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--primary); color: white; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-upload:hover { background: var(--primary-dark); }

.btn-submit-review { width: 100%; padding: 1rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border: none; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.3s; margin-top: 0.5rem; }
.btn-submit-review:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,123,255,0.3); }

/* CTA */
.cta-section { background: linear-gradient(135deg, #1e293b, #334155); color: white; padding: 4rem 1.5rem; text-align: center; }
.cta-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.75rem; }
.cta-section p { opacity: 0.8; margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary { padding: 0.85rem 2rem; background: var(--primary); color: white; border-radius: 10px; font-weight: 600; transition: background 0.2s; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-wa { padding: 0.85rem 2rem; background: #25d366; color: white; border-radius: 10px; font-weight: 600; }

/* FOOTER */
footer { background: #0f172a; color: #64748b; padding: 1.5rem; text-align: center; font-size: 0.85rem; }
footer a { color: #64748b; }
footer a:hover { color: white; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card.featured { grid-column: span 1; }
    .hero h1 { font-size: 1.8rem; }
    .stats-bar-inner { gap: 2rem; }
    .rating-summary { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .back-link-mobile { display: flex; }
    .nav-container { padding: 0.75rem 1rem; }
    .logo img { height: 32px; }
    .logo span { font-size: 0.9rem; }

    .hero { padding: 3rem 1rem 2.5rem; }
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.88rem; }

    .stats-bar-inner { gap: 1rem; flex-wrap: wrap; }
    .stat-num { font-size: 1.5rem; }

    .rating-summary { padding: 0 1rem; margin-top: 2rem; }
    .rating-big .number { font-size: 3.5rem; }

    .section { padding: 2.5rem 0; }
    .container { padding: 0 1rem; }
    .section-title { font-size: 1.4rem; }

    .review-form .form-row { grid-template-columns: 1fr; }
    .avatar-upload-area { flex-direction: column; text-align: center; }

    .cta-section h2 { font-size: 1.4rem; }
    .cta-btns { flex-direction: column; align-items: center; }
    .btn-primary, .btn-wa { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    .stats-bar-inner { grid-template-columns: repeat(2, 1fr); display: grid; gap: 1rem; }
}