/* FunnelFlow Public Styles */

:root {
    --ff-primary:    #FF6B35;
    --ff-secondary:  #2D6A4F;
    --ff-danger:     #E63946;
    --ff-bg:         #f9f9f9;
    --ff-white:      #ffffff;
    --ff-border:     #e0e0e0;
    --ff-text:       #333333;
    --ff-text-light: #666666;
    --ff-radius:     8px;
    --ff-font:       'Hind Siliguri', sans-serif;
}

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

.ff-checkout-page body,
.ff-upsell-page body,
.ff-thankyou-page body {
    font-family: var(--ff-font);
    background: var(--ff-bg);
    color: var(--ff-text);
    margin: 0;
}

.ff-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.ff-checkout-header {
    background: var(--ff-white);
    border-bottom: 1px solid var(--ff-border);
    padding: 14px 0;
}
.ff-checkout-header .ff-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.ff-secure-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.ff-badge {
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Checkout container - two-column */
.ff-checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    padding-top: 30px;
    padding-bottom: 60px;
    align-items: start;
}
@media (max-width: 768px) {
    .ff-checkout-container { grid-template-columns: 1fr; }
}

/* Form */
.ff-form-section {
    background: var(--ff-white);
    border-radius: var(--ff-radius);
    border: 1px solid var(--ff-border);
    padding: 24px;
}
.ff-form-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ff-border);
}
.ff-form-row { margin-bottom: 16px; }
.ff-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--ff-text);
}
.ff-form-row input,
.ff-form-row select,
.ff-form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ff-border);
    border-radius: 6px;
    font-family: var(--ff-font);
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.ff-form-row input:focus,
.ff-form-row select:focus { border-color: var(--ff-primary); }

/* Phone risk indicator */
.ff-phone-risk {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    display: none;
}
.ff-phone-risk.safe   { color: #2D6A4F; display: block; }
.ff-phone-risk.low    { color: #f0a500; display: block; }
.ff-phone-risk.medium { color: #e76f00; display: block; }
.ff-phone-risk.high   { color: #e63946; display: block; }

/* Order summary */
.ff-order-summary {
    background: var(--ff-white);
    border-radius: var(--ff-radius);
    border: 1px solid var(--ff-border);
    padding: 24px;
    position: sticky;
    top: 20px;
}
.ff-summary-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
}
.ff-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.ff-summary-item:last-child { border-bottom: none; }
.ff-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--ff-primary);
}

/* Submit button */
.ff-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--ff-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--ff-font);
    cursor: pointer;
    margin-top: 20px;
    transition: background .2s, transform .1s;
}
.ff-submit-btn:hover   { background: #e55a25; }
.ff-submit-btn:active  { transform: scale(.98); }
.ff-submit-btn.loading { opacity: .7; pointer-events: none; }

/* Upsell page */
.ff-upsell-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.ff-upsell-box {
    background: var(--ff-white);
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.ff-upsell-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ff-danger);
}
.ff-upsell-subtitle { font-size: 16px; color: var(--ff-text-light); margin-bottom: 24px; }
.ff-upsell-product-image img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}
.ff-upsell-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--ff-primary);
    margin: 16px 0;
}
.ff-upsell-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 20px;
    margin-right: 8px;
}
.ff-accept-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--ff-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--ff-font);
    cursor: pointer;
    margin: 20px 0 12px;
    transition: background .2s;
}
.ff-accept-btn:hover { background: #e55a25; }
.ff-decline-link {
    font-size: 13px;
    color: #999;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    font-family: var(--ff-font);
}

/* Countdown timer */
.ff-countdown {
    background: #fff3cd;
    border: 1px solid #f0a500;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #856404;
}
.ff-countdown-time { font-size: 22px; font-weight: 700; }

/* Thank You */
.ff-thankyou-wrapper { padding: 60px 20px; text-align: center; }
.ff-thankyou-icon { font-size: 60px; margin-bottom: 16px; }
.ff-thankyou-title { font-size: 28px; font-weight: 700; color: var(--ff-secondary); margin-bottom: 8px; }
.ff-order-info-box {
    background: var(--ff-white);
    border-radius: var(--ff-radius);
    border: 1px solid var(--ff-border);
    padding: 24px;
    max-width: 500px;
    margin: 24px auto;
    text-align: left;
}
.ff-order-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.ff-order-info-row:last-child { border-bottom: none; }
.ff-order-info-label { color: var(--ff-text-light); }
.ff-order-info-value { font-weight: 600; }
