/* ==========================================================================
   troubleshooting.css — Maritime Equipment Troubleshooting
   Same language as the rest of the site: navy hero, cyan gradient accents,
   Outfit headings, pill buttons. Classes prefixed ts-.
   ========================================================================== */

.ts-page {
    background: #f4f9ff;
}

.ts-wrap {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

.ts-section {
    padding: 84px 0;
}

.ts-title {
    text-align: center;
    margin-bottom: 42px;
}

.ts-line {
    width: 80px;
    height: 4px;
    margin: 0 auto 18px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0077a8, #00dcff);
}

.ts-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.9rem, 4.2vw, 2.8rem);
    font-weight: 800;
    color: #002b45;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.ts-title p {
    color: #0077a8;
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ts-grad {
    background: linear-gradient(135deg, #00dcff, #7ec8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 50px;
    border: none;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.25s ease;
}

.ts-btn-primary {
    background: linear-gradient(135deg, #00b8ff, #0077a8);
    color: #fff;
    box-shadow: 0 15px 40px rgba(0, 150, 220, 0.35);
}

.ts-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(0, 180, 255, 0.5);
}

.ts-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
}

.ts-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============ HERO ============ */
.ts-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 140px 0 120px;
    background:
        radial-gradient(circle at 78% 40%, rgba(0, 184, 255, 0.2) 0%, transparent 46%),
        linear-gradient(160deg, #001420 0%, #002b45 55%, #03446d 100%);
}

.ts-hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 44px;
    align-items: center;
}

.ts-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    border-radius: 50px;
    background: rgba(0, 200, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4f0ff;
    margin-bottom: 22px;
}

.ts-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.2px;
    margin-bottom: 18px;
    text-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.ts-hero .ts-lead {
    font-size: 1.1rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.86);
    max-width: 58ch;
    margin-bottom: 30px;
}

.ts-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ts-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    list-style: none;
}

.ts-hero-facts li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.85);
}

.ts-hero-facts i {
    color: #00dcff;
}

/* ---- Hero illustration ---- */
.ts-art {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
}

.ts-art svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.ts-art .pulse-ring {
    transform-origin: center;
    animation: ts-pulse 3s ease-out infinite;
}

.ts-art .pulse-ring:nth-of-type(2) { animation-delay: 1s; }
.ts-art .pulse-ring:nth-of-type(3) { animation-delay: 2s; }

@keyframes ts-pulse {
    from { transform: scale(0.55); opacity: 0.9; }
    to   { transform: scale(1.5); opacity: 0; }
}

.ts-art .blink {
    animation: ts-blink 1.8s ease-in-out infinite;
}

.ts-art .blink.b2 { animation-delay: 0.6s; }
.ts-art .blink.b3 { animation-delay: 1.2s; }

@keyframes ts-blink {
    50% { opacity: 0.25; }
}

.ts-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    line-height: 0;
}

.ts-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ============ WHAT WE DO ============ */
.ts-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ts-card {
    padding: 28px 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(0, 150, 210, 0.14);
    box-shadow: 0 12px 30px rgba(0, 60, 100, 0.06);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.ts-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 110, 160, 0.15);
}

.ts-card .ico {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    font-size: 1.35rem;
    color: #005a8c;
    background: linear-gradient(145deg, #e6f4ff, #ccebff);
    transition: all 0.3s ease;
}

.ts-card:hover .ico {
    background: linear-gradient(145deg, #00a6d6, #0077a8);
    color: #fff;
    transform: rotate(-6deg) scale(1.08);
}

.ts-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: #002b45;
    margin-bottom: 6px;
}

.ts-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #5a6b7c;
}

/* ============ STEPS ============ */
.ts-steps-section {
    background: #eaf5fc;
}

.ts-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    list-style: none;
    counter-reset: tstep;
}

.ts-steps::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 12%;
    right: 12%;
    border-top: 2px dashed #9fd3ee;
}

.ts-step {
    position: relative;
    text-align: center;
    padding: 0 8px;
    counter-increment: tstep;
}

.ts-step .dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, #00b8ff, #0077a8);
    box-shadow: 0 0 0 8px #eaf5fc, 0 14px 30px rgba(0, 150, 220, 0.35);
}

.ts-step .dot::after {
    content: counter(tstep);
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #002b45;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ts-step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.08rem;
    color: #002b45;
    margin-bottom: 6px;
}

.ts-step p {
    font-size: 0.9rem;
    color: #5a6b7c;
    line-height: 1.65;
}

/* ============ FORM ============ */
.ts-form-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 26px;
    align-items: start;
}

.ts-panel {
    background: #fff;
    border-radius: 26px;
    border: 1px solid rgba(0, 150, 210, 0.15);
    box-shadow: 0 18px 45px rgba(0, 60, 100, 0.08);
    padding: 28px 30px;
}

.ts-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #002b45;
}

.ts-legend .num {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #00b8ff, #0077a8);
}

.ts-legend + .ts-legend,
.ts-fields + .ts-legend {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eaf3f9;
}

.ts-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ts-field {
    display: flex;
    flex-direction: column;
}

.ts-field.wide {
    grid-column: 1 / -1;
}

.ts-field label {
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #002b45;
}

.ts-req {
    color: #c0392b;
    font-weight: 400;
}

.ts-field input,
.ts-field select,
.ts-field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 0.95rem;
    color: #1a2b3c;
    background: #f8fcff;
    border: 1px solid #cfe3f0;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ts-field input:focus,
.ts-field select:focus,
.ts-field textarea:focus {
    outline: none;
    border-color: #00b8ff;
    box-shadow: 0 0 0 3px rgba(0, 184, 255, 0.15);
}

.ts-field select:disabled {
    background: #eef3f7;
    color: #8ba0b2;
    cursor: not-allowed;
}

.ts-field textarea {
    min-height: 120px;
    resize: vertical;
}

.ts-field .hint {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #5a6b7c;
}

.ts-field .err {
    display: none;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #c0392b;
}

.ts-field.invalid input,
.ts-field.invalid select,
.ts-field.invalid textarea {
    border-color: #e57373;
    background: #fff7f7;
}

.ts-field.invalid .err {
    display: block;
}

.ts-phone {
    display: flex;
    gap: 10px;
}

.ts-phone select {
    width: 124px;
    flex: 0 0 124px;
}

.ts-phone input {
    flex: 1;
    min-width: 0;
}

/* ============ SUMMARY / PAYMENT PANEL ============ */
.ts-side {
    position: sticky;
    top: 84px;
}

.ts-side h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    color: #002b45;
    margin-bottom: 16px;
}

.ts-side h3 i {
    color: #00a6d6;
}

.ts-sum-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed #dceaf4;
    font-size: 0.92rem;
    color: #3a4f60;
}

.ts-sum-row:last-of-type {
    border-bottom: none;
}

.ts-sum-row strong {
    color: #002b45;
    text-align: right;
    word-break: break-word;
}

.ts-sum-row strong.pending {
    color: #9ab0c0;
    font-weight: 500;
}

.ts-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 14px;
    padding: 16px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #002b45, #03446d);
    color: #fff;
}

.ts-price span {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
}

.ts-price strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: #7fe6ff;
}

.ts-pay {
    width: 100%;
    margin-top: 14px;
    font-size: 1.02rem;
    padding: 16px 24px;
}

.ts-pay:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ts-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 13px 16px;
    border-radius: 14px;
    background: #f0f8fd;
    border-left: 4px solid #00a6d6;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #3a4f60;
}

.ts-note i {
    color: #0077a8;
    margin-top: 3px;
}

.ts-spin {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ts-spin 0.9s linear infinite;
}

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

/* ---- Toast ---- */
.ts-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 2000;
    transform: translate(-50%, 130%);
    max-width: min(440px, calc(100% - 32px));
    padding: 15px 22px;
    border-radius: 16px;
    background: #03446d;
    color: #fff;
    font-size: 0.93rem;
    line-height: 1.5;
    box-shadow: 0 20px 45px rgba(0, 20, 40, 0.35);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
}

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

.ts-toast.success { background: #0f7a46; }
.ts-toast.error   { background: #b23a3a; }

/* ---- Success panel ---- */
.ts-done {
    display: none;
    text-align: center;
    padding: 34px 28px;
}

.ts-done.show {
    display: block;
}

.ts-done .tick {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: #fff;
    background: linear-gradient(135deg, #0f9d58, #0b7a43);
    box-shadow: 0 14px 30px rgba(15, 157, 88, 0.35);
}

.ts-done h3 {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: #002b45;
    margin-bottom: 10px;
}

.ts-done p {
    color: #3a4f60;
    line-height: 1.8;
    margin-bottom: 8px;
}

.ts-ref {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 18px;
    border-radius: 40px;
    background: #f0f8fd;
    border: 1px solid #cfe7f5;
    font-weight: 700;
    color: #002b45;
}

/* ============ FAQ ============ */
.ts-faq {
    max-width: 860px;
    margin-inline: auto;
}

.ts-q {
    margin-bottom: 12px;
    border-radius: 16px;
    border: 1px solid rgba(0, 150, 210, 0.15);
    background: #fff;
    overflow: hidden;
}

.ts-q summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    font-weight: 700;
    color: #002b45;
    cursor: pointer;
    list-style: none;
}

.ts-q summary::-webkit-details-marker {
    display: none;
}

.ts-q summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    color: #0077a8;
    transition: transform 0.25s ease;
}

.ts-q[open] summary::after {
    transform: rotate(180deg);
}

.ts-q p {
    padding: 0 22px 20px;
    color: #3a4f60;
    line-height: 1.8;
}

.brand {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }

        .brand img {
            height: 45px;
            width: auto;
        }

        .brand span {
            font-weight: 700;
            font-size: 20px;
        }


        
/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
    .ts-hero-grid,
    .ts-form-grid {
        grid-template-columns: 1fr;
    }

    .ts-side {
        position: static;
    }

    .ts-art {
        max-width: 380px;
    }

    .ts-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .ts-section {
        padding: 58px 0;
    }

    .ts-hero {
        padding: 118px 0 92px;
    }

    .ts-panel {
        padding: 22px 18px;
    }

    .ts-fields {
        grid-template-columns: 1fr;
    }

    .ts-steps {
        grid-template-columns: 1fr 1fr;
        row-gap: 32px;
    }

    .ts-steps::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .ts-cards {
        grid-template-columns: 1fr;
    }

    .ts-hero-btns .ts-btn {
        flex: 1 1 100%;
    }

    /* iOS zooms into fields under 16px */
    .ts-field input,
    .ts-field select,
    .ts-field textarea {
        font-size: 16px;
    }

    .ts-phone select {
        width: 104px;
        flex-basis: 104px;
    }
}

@media (hover: none) {
    .ts-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ts-art .pulse-ring,
    .ts-art .blink {
        animation: none;
    }
}
