/* =========================================================
   SmartMove – Testimonials Page Styles  (Modern Redesign)
   Primary: #121ee4
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --smt-primary:        #121ee4;
    --smt-primary-dark:   #0c17b8;
    --smt-primary-light:  rgba(18, 30, 228, 0.08);
    --smt-primary-glow:   rgba(18, 30, 228, 0.18);
    --smt-text:           #1a1a2e;
    --smt-muted:          #64748b;
    --smt-border:         #e2e8f0;
    --smt-bg:             #f8fafc;
    --smt-card-bg:        #ffffff;
    --smt-radius:         14px;
    --smt-star:           #f59e0b;
}

/* =========================================================
   HERO BANNER
   ========================================================= */
.smt-hero {
    background: linear-gradient(135deg, #0f1799 0%, #1a27ff 50%, #3b4fff 100%);
    border-radius: 20px;
    padding: 56px 48px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.smt-hero::before {
    content: '\201C';
    position: absolute;
    right: 40px;
    top: -20px;
    font-size: 220px;
    color: rgba(255,255,255,0.06);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.smt-hero-text {
    flex: 1;
    min-width: 220px;
}

.smt-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin: 0 0 10px;
}

.smt-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.smt-hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.6;
}

.smt-hero-action {
    flex-shrink: 0;
}

.smt-leave-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    color: var(--smt-primary) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 50px;
    padding: 14px 28px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    white-space: nowrap;
}

.smt-leave-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.26);
    background: #f0f4ff;
    color: var(--smt-primary) !important;
}

.smt-leave-review-btn svg,
.smt-leave-review-btn .smt-btn-icon {
    font-size: 15px;
}

/* =========================================================
   STATS BAR
   ========================================================= */
.smt-stats-bar {
    display: flex;
    gap: 0;
    background: var(--smt-card-bg);
    border: 1px solid var(--smt-border);
    border-radius: var(--smt-radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(18,30,228,0.06);
}

.smt-stat {
    flex: 1;
    padding: 22px 20px;
    text-align: center;
    border-right: 1px solid var(--smt-border);
    position: relative;
}

.smt-stat:last-child {
    border-right: none;
}

.smt-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--smt-primary);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.smt-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--smt-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =========================================================
   MASONRY GRID
   ========================================================= */
.smt-grid {
    columns: 2;
    column-gap: 22px;
}

.smt-card {
    background: var(--smt-card-bg);
    border: 1px solid var(--smt-border);
    border-radius: var(--smt-radius);
    padding: 30px 28px 26px;
    box-shadow: 0 2px 14px rgba(18, 30, 228, 0.05);
    position: relative;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    break-inside: avoid;
    margin-bottom: 22px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.smt-card:hover {
    box-shadow: 0 10px 32px rgba(18, 30, 228, 0.13);
    transform: translateY(-3px);
    border-color: rgba(18, 30, 228, 0.2);
}

/* Accent left border on hover */
.smt-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: var(--smt-primary);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transform: scaleY(0.5);
    transition: opacity 0.25s, transform 0.25s;
}

.smt-card:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

/* Stars top of card */
.smt-card-stars {
    display: flex;
    gap: 2px;
    color: var(--smt-star);
    font-size: 14px;
    margin-bottom: 14px;
}

/* Large decorative open-quote */
.smt-card-open-quote {
    font-size: 52px;
    color: var(--smt-primary);
    opacity: 0.15;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 0.7;
    margin-bottom: 8px;
    display: block;
    user-select: none;
}

.smt-card-quote {
    font-size: 14.5px;
    line-height: 1.78;
    color: #475569;
    margin: 0 0 22px;
    font-style: italic;
}

/* Author row */
.smt-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--smt-border);
}

.smt-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--smt-primary) 0%, #3b4fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0;
}

.smt-author-info {
    flex: 1;
    min-width: 0;
}

.smt-card-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--smt-text);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smt-card-date {
    font-size: 11px;
    color: var(--smt-muted);
    margin: 0;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.smt-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--smt-muted);
    font-size: 15px;
    background: var(--smt-card-bg);
    border-radius: var(--smt-radius);
    border: 1px dashed var(--smt-border);
}

.smt-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.45;
}

.smt-empty a {
    color: var(--smt-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================
   REVIEW FORM PAGE
   ========================================================= */
.smt-form-page-hero {
    background: linear-gradient(135deg, #0f1799 0%, #1a27ff 50%, #3b4fff 100%);
    border-radius: 20px;
    padding: 44px 48px;
    margin-bottom: 36px;
}

.smt-form-page-hero h1 {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.smt-form-page-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.6;
}

.smt-form-wrap {
    max-width: 800px;
    background: var(--smt-card-bg);
    border-radius: 16px;
    padding: 44px 48px;
    box-shadow: 0 2px 24px rgba(18, 30, 228, 0.07);
    border: 1px solid var(--smt-border);
}

.smt-form-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--smt-text);
    margin: 0 0 28px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

/* Rows */
.smt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.smt-row.smt-row-1  { grid-template-columns: 1fr; }
.smt-row.smt-row-3  { grid-template-columns: 1fr 1fr 1fr; }

/* Fields */
.smt-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.smt-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--smt-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.smt-required { color: #e74c3c; }

.smt-field input[type="text"],
.smt-field input[type="email"],
.smt-field select,
.smt-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--smt-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--smt-text);
    background: var(--smt-bg);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.smt-field input:focus,
.smt-field select:focus,
.smt-field textarea:focus {
    border-color: var(--smt-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(18, 30, 228, 0.1);
}

.smt-field input.smt-error,
.smt-field select.smt-error,
.smt-field textarea.smt-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.smt-select-wrap { position: relative; }
.smt-select-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #999;
    pointer-events: none;
}

.smt-field select { padding-right: 34px; cursor: pointer; }
.smt-field textarea { resize: vertical; min-height: 120px; }

.smt-field-error {
    font-size: 11px;
    color: #e74c3c;
    font-weight: 600;
    display: none;
    margin-top: 2px;
}

.smt-privacy-note {
    font-size: 13px;
    color: #888;
    margin: 4px 0 16px;
    line-height: 1.6;
}
.smt-privacy-note a {
    color: var(--smt-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.smt-recaptcha-wrap { margin-bottom: 16px; }

.smt-submit-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.smt-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--smt-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    padding: 14px 36px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(18, 30, 228, 0.3);
}
.smt-submit-btn:hover {
    background: var(--smt-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(18,30,228,0.4);
}
.smt-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.smt-btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: smt-spin 0.7s linear infinite;
}
.smt-submit-btn.smt-loading .smt-btn-spinner { display: inline-block; }

@keyframes smt-spin { to { transform: rotate(360deg); } }

.smt-required-note { font-size: 12px; color: #aaa; margin: 8px 0 0; }

.smt-result {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 18px;
    display: none;
    line-height: 1.5;
    font-weight: 500;
}
.smt-result.smt-success {
    background: #eef2ff;
    border: 1px solid var(--smt-primary);
    color: var(--smt-primary-dark);
}
.smt-result.smt-error-msg {
    background: #fdedec;
    border: 1px solid #e74c3c;
    color: #922b21;
}

/* =========================================================
   FADE-IN ANIMATION
   ========================================================= */
@keyframes smt-fadeup {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.smt-card {
    animation: smt-fadeup 0.45s ease both;
}

.smt-card:nth-child(2)  { animation-delay: 0.05s; }
.smt-card:nth-child(3)  { animation-delay: 0.10s; }
.smt-card:nth-child(4)  { animation-delay: 0.15s; }
.smt-card:nth-child(5)  { animation-delay: 0.20s; }
.smt-card:nth-child(6)  { animation-delay: 0.25s; }
.smt-card:nth-child(7)  { animation-delay: 0.30s; }
.smt-card:nth-child(8)  { animation-delay: 0.35s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .smt-grid { columns: 1; }
    .smt-hero { padding: 36px 26px; }
    .smt-hero-title { font-size: 26px; }
    .smt-stats-bar { flex-wrap: wrap; }
    .smt-stat { flex: 1 1 45%; }
}

@media (max-width: 640px) {
    .smt-form-wrap { padding: 28px 20px; }
    .smt-row, .smt-row.smt-row-3 { grid-template-columns: 1fr; }
    .smt-submit-btn { width: 100%; justify-content: center; }
    .smt-hero { padding: 28px 20px; }
    .smt-leave-review-btn { width: 100%; justify-content: center; }
    .smt-stat { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--smt-border); }
    .smt-stat:last-child { border-bottom: none; }
    .smt-form-page-hero { padding: 30px 22px; }
}