/* ============================================================
   DUMI SURF — Testimonials Form Page CSS
   ============================================================ */
@import url('shared.css');

/* ================================================================
   HERO
================================================================ */
.testi-hero {
    position: relative;
    background: linear-gradient(135deg, var(--ocean) 0%, #014f86 50%, var(--primary) 100%);
    padding: 140px 40px 110px;
    text-align: center;
    overflow: hidden;
}

.testi-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 30% 40%, rgba(0, 150, 199, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 40% 50% at 80% 70%, rgba(144, 224, 239, 0.10) 0%, transparent 60%);
    pointer-events: none;
}

.testi-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: 0 auto;
}

.testi-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 30px;
    padding: 7px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.testi-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5.5vw, 66px);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.testi-hero-title em {
    font-style: italic;
    color: var(--primary-light);
}

.testi-hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
}

.testi-hero-waves {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    line-height: 0;
    pointer-events: none;
}

.testi-hero-waves svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ================================================================
   FORM SECTION
================================================================ */
.testi-form-section {
    padding: 80px 40px 100px;
    background: var(--bg);
}

.testi-form-wrap {
    max-width: 780px;
    margin: 0 auto;
}

/* ── Success state ── */
.testi-success {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 40px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.ts-icon {
    color: var(--success);
    margin-bottom: 24px;
}

.testi-success h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
}

.testi-success p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
}

/* ── Form card ── */
.testi-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 48px 44px;
    box-shadow: var(--shadow);
}

@keyframes tfShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

.testi-form-card.shake {
    animation: tfShake 0.45s ease;
    border-color: #f87171;
}

.tfc-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.tfc-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-pale);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.tfc-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.tfc-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.req-star {
    color: #ef4444;
}

/* ── Form fields ── */
.tfc-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.tf-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tf-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.tf-group label svg {
    color: var(--primary);
}

.tf-group input,
.tf-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    transition: var(--transition);
    outline: none;
    resize: vertical;
}

.tf-group input::placeholder,
.tf-group textarea::placeholder {
    color: var(--text-light);
}

.tf-group input:focus,
.tf-group textarea:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.10);
}

.tf-hint,
.tf-char-count {
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: right;
}

/* ── Star rating ── */
.star-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #d1d5db;
    transition: color 0.15s ease, transform 0.15s ease;
    line-height: 0;
}

.star-btn svg {
    width: 32px;
    height: 32px;
    transition: fill 0.15s ease;
}

.star-btn.active,
.star-btn:hover {
    color: #f59e0b;
}

.star-btn.active svg,
.star-btn:hover svg {
    fill: #f59e0b;
}

.star-btn:hover {
    transform: scale(1.15);
}

.star-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 8px;
}

/* ── Privacy note ── */
.tf-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.tf-privacy svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Submit button ── */
.tf-submit {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 16px 28px;
}

.tf-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ================================================================
   PUBLISHED TESTIMONIALS LIST
================================================================ */
.testi-list-section {
    padding: 80px 40px 120px;
    background: var(--bg2);
}

.testi-list-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.testi-list-header {
    text-align: center;
    margin-bottom: 50px;
}

.testi-list-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.testi-list-header p {
    font-size: 16px;
    color: var(--text-muted);
}

.testi-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testi-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    text-align: left;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.testi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.testi-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
    color: #fbbf24;
}

.testi-star-icon {
    font-size: 16px;
}

.testi-quote {
    font-size: 14.5px;
    color: var(--text-2);
    line-height: 1.70;
    margin-bottom: 22px;
    font-style: italic;
}

.testi-quote::before {
    content: '"';
    font-size: 40px;
    color: var(--primary-light);
    font-family: 'Playfair Display', serif;
    line-height: 0;
    vertical-align: -14px;
    margin-right: 4px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: var(--bg2);
    border: 1px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.testi-author-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

.testi-author-info span {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 768px) {
    .testi-hero {
        padding: 110px 24px 80px;
    }

    .testi-form-section {
        padding: 60px 20px 80px;
    }

    .testi-form-card {
        padding: 28px 22px;
    }

    .tf-row {
        grid-template-columns: 1fr;
    }

    .testi-list-grid {
        grid-template-columns: 1fr;
    }
}