/* =============================================================
   Complaints & Support Page — complaints.css
   Ganesh Cap Mart | Foxiz Child Theme
   All selectors scoped to .cs-* to avoid cross-page conflicts
   ============================================================= */

/* ── Reset & Base ─────────────────────────────────────────── */
.cs-page *,
.cs-page *::before,
.cs-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.wpcf7-form {
    display: block!important;
}
.cs-page {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #1a1a2e;
    overflow-x: hidden;
}

.cs-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── HERO ─────────────────────────────────────────────────── */
.cs-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #b5000d 45%, #ff4500 80%, #ff7b00 100%);
    padding: 100px 0 120px;
    text-align: center;
    overflow: hidden;
}

/* Floating particles */
.cs-hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cs-hero__particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    opacity: 0.15;
    animation: cs-float 9s ease-in-out infinite;
}

.cs-hero__particles span:nth-child(1)  { width: 260px; height: 260px; background: #ff4500; top: -70px;  left: -50px;  animation-delay: 0s;   animation-duration: 10s; }
.cs-hero__particles span:nth-child(2)  { width: 160px; height: 160px; background: #ff7b00; top: 55%;   right: -40px; animation-delay: 2s;   animation-duration: 9s; }
.cs-hero__particles span:nth-child(3)  { width: 110px; height: 110px; background: #b5000d; bottom: -30px; left: 30%; animation-delay: 1s;   animation-duration: 11s; }
.cs-hero__particles span:nth-child(4)  { width:  70px; height:  70px; background: #fff;    top: 20%;   left: 20%;   animation-delay: 3s;   animation-duration: 7s; }
.cs-hero__particles span:nth-child(5)  { width: 190px; height: 190px; background: #1a1a2e; top: -40px;  right: 15%;  animation-delay: 4s;   animation-duration: 12s; }
.cs-hero__particles span:nth-child(6)  { width:  55px; height:  55px; background: #ff4500; bottom: 10%; right: 30%;  animation-delay: 0.5s; animation-duration: 8s; }
.cs-hero__particles span:nth-child(7)  { width:  95px; height:  95px; background: #ff7b00; top: 50%;   left: 10%;   animation-delay: 2.5s; animation-duration: 9s; }
.cs-hero__particles span:nth-child(8)  { width: 130px; height: 130px; background: #b5000d; bottom: 5%;  left: 60%;   animation-delay: 1.5s; animation-duration: 10s; }

@keyframes cs-float {
    0%, 100% { transform: translateY(0)    scale(1);    }
    50%       { transform: translateY(-28px) scale(1.06); }
}

/* Hero badge */
.cs-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

/* Hero headline */
.cs-hero__headline {
    position: relative;
    z-index: 1;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.cs-highlight {
    background: linear-gradient(90deg, #ffd700, #ff7b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero sub */
.cs-hero__sub {
    position: relative;
    z-index: 1;
    font-size: 18px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 36px;
    font-weight: 400;
}

/* Pill tags */
.cs-hero__pills {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.cs-hero__pills span {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 100px;
    transition: background 0.25s, transform 0.25s;
}

.cs-hero__pills span:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-3px);
}

/* Hero CTA */
.cs-hero__cta {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: #fff;
    color: #b5000d;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: transform 0.25s, box-shadow 0.25s;
}

.cs-hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.28);
    color: #b5000d;
}

/* ── HOW IT WORKS ────────────────────────────────────────── */
.cs-how {
    background: #fff;
    padding: 80px 0 90px;
    text-align: center;
}

.cs-section-title {
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.cs-section-sub {
    font-size: 16px;
    color: #666;
    margin-bottom: 52px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.cs-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.cs-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 260px;
    text-align: center;
    padding: 0 16px;
}

.cs-step__num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b5000d, #ff4500);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 6px 22px rgba(181,0,13,0.35);
    flex-shrink: 0;
}

.cs-step__body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.cs-step__body p {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
}

.cs-step__connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #b5000d, #ff7b00);
    margin-top: 28px;
    flex-shrink: 0;
    opacity: 0.4;
}

@media (max-width: 767px) {
    .cs-steps        { flex-direction: column; align-items: center; }
    .cs-step__connector { width: 2px; height: 40px; margin: 0 0 0 0; }
}

/* ── FORM SECTION ─────────────────────────────────────────── */
.cs-form-section {
    background: #fdf3f3;
    padding: 80px 0 100px;
}

/* Card */
.cs-form-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(181,0,13,0.10),
                0 4px 20px rgba(0,0,0,0.06);
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;
}

/* Glow accent */
.cs-form-card__glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,69,0,0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Card header */
.cs-form-card__header {
    background: linear-gradient(135deg, #b5000d, #ff4500);
    padding: 44px 40px 36px;
    text-align: center;
    position: relative;
}

.cs-form-card__icon {
    font-size: 52px;
    margin-bottom: 12px;
    display: block;
    animation: cs-pulse 2.2s ease-in-out infinite;
}

@keyframes cs-pulse {
    0%, 100% { transform: scale(1);    }
    50%       { transform: scale(1.12); }
}

.cs-form-card__title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.cs-form-card__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto;
}

/* Card body */
.cs-form-card__body {
    padding: 44px 40px 48px;
}

@media (max-width: 600px) {
    .cs-form-card__header { padding: 32px 20px 28px; }
    .cs-form-card__body   { padding: 28px 20px 32px; }
}

/* ── CF7 FIELD OVERRIDES (scoped to .cs-form-card__body) ──── */
.cs-form-card__body .wpcf7-form p {
    margin-bottom: 20px;
}

.cs-form-card__body .wpcf7-form label,
.cs-form-card__body .wpcf7-form .cs-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.cs-form-card__body .wpcf7-form input[type="text"],
.cs-form-card__body .wpcf7-form input[type="email"],
.cs-form-card__body .wpcf7-form input[type="url"],
.cs-form-card__body .wpcf7-form input[type="file"],
.cs-form-card__body .wpcf7-form select,
.cs-form-card__body .wpcf7-form textarea {
    width: 100%;
    font-size: 15px;
    color: #1a1a2e;
    background: #fafafa;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.cs-form-card__body .wpcf7-form input[type="file"] {
    padding: 10px 14px;
    cursor: pointer;
}

.cs-form-card__body .wpcf7-form input[type="text"]:focus,
.cs-form-card__body .wpcf7-form input[type="email"]:focus,
.cs-form-card__body .wpcf7-form input[type="url"]:focus,
.cs-form-card__body .wpcf7-form select:focus,
.cs-form-card__body .wpcf7-form textarea:focus {
    border-color: #b5000d;
    box-shadow: 0 0 0 3px rgba(181,0,13,0.1);
    background: #fff;
}

.cs-form-card__body .wpcf7-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b5000d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.cs-form-card__body .wpcf7-form textarea {
    resize: vertical;
    min-height: 130px;
}

/* Submit button */
.cs-form-card__body .wpcf7-form input[type="submit"],
.cs-form-card__body .wpcf7-submit {
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, #b5000d, #ff4500);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 15px 32px;
    cursor: pointer;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 22px rgba(181,0,13,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.cs-form-card__body .wpcf7-form input[type="submit"]:hover,
.cs-form-card__body .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(181,0,13,0.45);
}

/* CF7 validation */
.cs-form-card__body .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #b5000d;
    margin-top: 4px;
    display: block;
}

.cs-form-card__body .wpcf7-response-output {
    margin-top: 16px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none !important;
}

.cs-form-card__body .wpcf7-mail-sent-ok {
    background: #e8f8f0;
    color: #1a7f4b;
}

.cs-form-card__body .wpcf7-validation-errors,
.cs-form-card__body .wpcf7-mail-sent-ng,
.cs-form-card__body .wpcf7-spam-blocked {
    background: #fde8e8;
    color: #b5000d;
}

/* ── ASSURANCE BAR ───────────────────────────────────────── */
.cs-assurance {
    background: #1a1a2e;
    padding: 36px 0;
}

.cs-assurance__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 48px;
}

.cs-assurance__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.88);
    font-size: 15px;
    font-weight: 500;
}

.cs-assurance__icon {
    font-size: 22px;
    flex-shrink: 0;
}

/* ── COMPLAINT TYPES ─────────────────────────────────────── */
.cs-types {
    background: #fff;
    padding: 80px 0 90px;
    text-align: center;
}

.cs-types__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
    margin-top: 0;
}

.cs-type-card {
    background: #fdf3f3;
    border: 1.5px solid rgba(181,0,13,0.1);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: left;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.cs-type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(181,0,13,0.12);
    border-color: rgba(181,0,13,0.25);
}

.cs-type-card__icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.cs-type-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.35;
}

.cs-type-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
}

/* ── CTA REPEAT ─────────────────────────────────────────── */
.cs-cta-repeat {
    background: linear-gradient(135deg, #b5000d, #ff4500);
    padding: 56px 24px;
    text-align: center;
}

.cs-cta-repeat__text {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #fff;
    font-weight: 600;
    margin-bottom: 28px;
}

.cs-cta-btn {
    display: inline-block;
    background: #fff;
    color: #b5000d;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    transition: transform 0.25s, box-shadow 0.25s;
}

.cs-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(0,0,0,0.25);
    color: #b5000d;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 767px) {

    .cs-hero          { padding: 72px 0 90px; }
    .cs-how           { padding: 56px 0 64px; }
    .cs-form-section  { padding: 56px 0 72px; }
    .cs-types         { padding: 56px 0 64px; }
    .cs-cta-repeat    { padding: 48px 20px;   }

    .cs-assurance__list {
        gap: 20px 28px;
        font-size: 14px;
    }

    .cs-types__grid {
        grid-template-columns: 1fr;
    }

}
