/* ===========================
   ZCT Application — Shared Styles
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #474747;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #62c1bf;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ========== HEADER ========== */
.zct-header {
    background: #000;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.zct-header img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.zct-brand {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

/* ========== MAIN CONTENT ========== */
.zct-main {
    flex: 1;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 24px 72px;
}

/* Constrain narrow content (forms, body copy) within wider page */
.zct-narrow {
    max-width: 760px;
    margin: 0 auto;
}

/* Page title (steps) */
.zct-page-title {
    font-size: 40px;
    font-weight: 800;
    color: #000;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

/* Landing hero title */
h1.zct-hero {
    font-size: 40px;
    font-weight: 800;
    color: #000;
    text-align: center;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

/* ========== PROGRESS BAR ========== */
.zct-progress {
    position: relative;
    background: #efefef;
    border-radius: 6px;
    height: 28px;
    margin-bottom: 40px;
    overflow: hidden;
}

.zct-progress-fill {
    background: #62c1bf;
    height: 100%;
    transition: width 0.4s ease;
}

.zct-progress-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #000;
}

/* ========== FORM FIELDS ========== */
.zct-field {
    margin-bottom: 18px;
}

.zct-field label {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.5;
}

.zct-field label strong {
    color: #2a2a2a;
    font-weight: 600;
}

.zct-field input[type="text"],
.zct-field input[type="email"],
.zct-field input[type="tel"],
.zct-field textarea,
.zct-field select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s ease;
}

.zct-field input:focus,
.zct-field textarea:focus,
.zct-field select:focus {
    border-color: #62c1bf;
}

.zct-field textarea {
    resize: vertical;
    min-height: 90px;
}

.zct-field select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23666' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Two-column row */
.zct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .zct-row {
        grid-template-columns: 1fr;
    }
}

/* Consent + reCAPTCHA */
.zct-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 26px 0 18px;
    font-size: 13px;
    color: #555;
}

.zct-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.zct-recaptcha-stub {
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    padding: 14px 16px;
    width: 304px;
    max-width: 100%;
    margin: 6px auto 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: #444;
}

.zct-recaptcha-stub .zct-recaptcha-box {
    width: 24px;
    height: 24px;
    border: 2px solid #c1c1c1;
    background: #fff;
    border-radius: 2px;
    flex-shrink: 0;
}

.zct-recaptcha-stub .zct-recaptcha-brand {
    margin-left: auto;
    text-align: right;
    font-size: 10px;
    color: #888;
    line-height: 1.3;
}

/* ========== CTA BUTTON ========== */
.zct-cta {
    display: block;
    width: 100%;
    background: #62c1bf;
    color: #fff;
    padding: 18px 24px;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s ease, transform 0.05s ease;
    margin-top: 10px;
}

.zct-cta:hover {
    background: #4faaa8;
    text-decoration: none;
    color: #fff;
}

.zct-cta:active {
    transform: translateY(1px);
}

/* Loading state — a small spinner that appears right after the button text/arrow
   while the page is saving + navigating, so the click clearly registers. */
.zct-cta.is-loading {
    cursor: progress;
    opacity: 0.85;
}
.zct-cta.is-loading::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-left: 0.5em;
    vertical-align: -0.12em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: zct-spin 0.6s linear infinite;
}
@keyframes zct-spin {
    to { transform: rotate(360deg); }
}

/* Landing CTA — inline, narrower */
.zct-cta-inline {
    display: inline-block;
    width: auto;
    padding: 16px 48px;
    margin: 14px auto 0;
}

.zct-cta-center {
    text-align: center;
}

/* ========== LANDING / WELCOME ========== */
.zct-video-label {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.zct-video-wrap {
    background: #0a0a0a;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    width: 100%;
    margin: 0 auto 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

.zct-video-wrap::after {
    content: "";
    width: 88px;
    height: 88px;
    background: rgba(98, 193, 191, 0.9);
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'><path fill='white' d='M8 5v14l11-7z'/></svg>");
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
}

.zct-welcome-heading {
    color: #62c1bf;
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.zct-welcome-body {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    color: #2a2a2a;
    font-size: 17px;
    line-height: 1.7;
}

.zct-welcome-body p {
    margin-bottom: 22px;
}

.zct-welcome-body p.strong {
    font-weight: 700;
    color: #000;
    font-size: 18px;
}

.zct-welcome-body em {
    font-style: italic;
    color: #555;
}

/* ========== STEP-4 PAYMENT ========== */
.zct-payment-intro {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
    color: #2a2a2a;
    font-size: 16px;
}

.zct-payment-intro p {
    margin-bottom: 14px;
}

.zct-payment-intro strong {
    color: #000;
}

.zct-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 28px;
}

@media (max-width: 720px) {
    .zct-payment-grid {
        grid-template-columns: 1fr;
    }
}

.zct-deposit-summary {
    padding: 28px 26px;
    background: #f5f5f5;
}

.zct-deposit-summary h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #666;
    margin-bottom: 12px;
}

.zct-deposit-amount {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
}

.zct-order-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #2a2a2a;
    border-bottom: 1px solid #e2e2e2;
}

.zct-order-row.zct-total {
    font-weight: 700;
    color: #000;
    font-size: 15px;
    border-bottom: none;
    margin-top: 6px;
}

.zct-payment-form {
    padding: 28px 26px;
    background: #f5e9a3;
}

.zct-payment-form h3 {
    font-size: 13px;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zct-payment-form .zct-field input {
    background: #fff;
}

/* Stripe Elements card field sits on the yellow payment panel */
#payment-element {
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 14px;
    min-height: 44px;
}

.zct-payment-error {
    display: none;
    color: #b3261e;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.zct-secure-note {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 14px;
}

.zct-fine-print {
    text-align: center;
    font-size: 11px;
    color: #888;
    max-width: 640px;
    margin: 18px auto 0;
    line-height: 1.5;
}

/* ========== FOOTER ========== */
.zct-footer {
    background: #000;
    color: #ccc;
    padding: 28px 20px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.zct-footer-links {
    display: flex;
    gap: 28px;
}

.zct-footer-links a {
    color: #ccc;
}

.zct-footer-copyright {
    color: #888;
}

@media (max-width: 600px) {
    .zct-footer {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== MOBILE ========== */
@media (max-width: 600px) {
    .zct-main {
        padding: 32px 18px 48px;
    }

    .zct-page-title,
    h1.zct-hero {
        font-size: 28px;
    }

    .zct-welcome-heading {
        font-size: 24px;
    }

    .zct-video-label {
        font-size: 22px;
    }
}
