/* =============================================
   Shanet Referral Page — Ezra-style design
   Solid red background, frosted glass cards
   ============================================= */

/* --- Full-width breakout --- */
.shanet-referral-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(180deg, #f15512 0%, #c44410 60%, #a33a0e 100%);
}

/* =============================================
   Hero Section
   ============================================= */
.shanet-referral-hero {
    padding: 72px 24px 48px;
    text-align: center;
}

.shanet-referral-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* Pill badge */
.shanet-referral-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 999px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.25);
}

/* Title */
.shanet-referral-hero__title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.1;
}

/* Subtitle */
.shanet-referral-hero__subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.9);
    max-width: 660px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

/* =============================================
   Benefit Cards
   ============================================= */
.shanet-referral-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1060px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .shanet-referral-cards {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

.shanet-referral-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 40px 28px 36px;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.shanet-referral-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.18);
}

/* VIP card gold border */
.shanet-referral-card--vip {
    border: 2px solid #facc15;
}

/* Icon circle */
.shanet-referral-card__icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: #fff;
}

.shanet-referral-card__icon--vip {
    background: rgba(250,204,21,0.3);
    color: #facc15;
}

.shanet-referral-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}

.shanet-referral-card__title--vip {
    color: #facc15;
}

.shanet-referral-card__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin: 0;
}

/* =============================================
   Form Section — sits on same red bg
   ============================================= */
.shanet-referral-form-section {
    padding: 48px 24px 56px;
}

.shanet-referral-form-wrap {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
}

.shanet-referral-form__title {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin: 0 0 8px;
    text-align: center;
}

.shanet-referral-form__subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 28px;
    text-align: center;
    line-height: 1.5;
}

.shanet-referral-form__group {
    margin-bottom: 20px;
}

.shanet-referral-form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.shanet-referral-form__required {
    color: #f15512;
}

.shanet-referral-form__input {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #111 !important;
    outline: none !important;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 50px !important;
}

.shanet-referral-form__input:focus {
    border-color: #f15512;
    box-shadow: 0 0 0 3px rgba(241,85,18,0.1);
    background: #fff;
}

.shanet-referral-form__input::placeholder {
    color: #94a3b8;
}

.shanet-referral-form__submit,
.shanet-referral-form button.shanet-referral-form__submit,
button.shanet-referral-form__submit {
    width: 100% !important;
    min-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 24px !important;
    background: #f15512 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-family: inherit;
    margin-top: 8px;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.shanet-referral-form__submit:hover {
    background: #c44410 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.shanet-referral-form__submit:active {
    transform: scale(0.98);
}

/* =============================================
   Result Section — Ezra's Clean Style
   ============================================= */
.shanet-referral-result {
    margin-top: 28px !important;
    padding-top: 28px !important;
    text-align: center !important;
    border-top: 1px solid #e5e7eb;
}

.shanet-referral-result[hidden] {
    display: none !important;
}

/* Success header */
.shanet-referral-result .shanet-ref-success__icon {
    margin: 0 0 16px 0 !important;
    line-height: 1;
}
.shanet-referral-result .shanet-ref-success__icon svg {
    width: 56px !important;
    height: 56px !important;
}
.shanet-referral-result .shanet-ref-success__title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #111 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
}
.shanet-referral-result .shanet-ref-success__subtitle {
    font-size: 15px !important;
    color: #666 !important;
    margin: 0 0 24px 0 !important;
    font-weight: 400 !important;
}

/* Progress tracker */
.shanet-referral-result .shanet-ref-progress {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin: 0 0 24px 0 !important;
    text-align: left !important;
}
.shanet-referral-result .shanet-ref-progress__header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 15px !important;
    color: #111 !important;
    margin: 0 0 10px 0 !important;
}
.shanet-referral-result .shanet-ref-progress__header span {
    font-size: 13px !important;
    color: #888 !important;
    font-weight: 400 !important;
}
.shanet-referral-result .shanet-ref-progress__bar {
    height: 10px !important;
    background: #e2e8f0 !important;
    border-radius: 99px !important;
    overflow: hidden !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}
.shanet-referral-result .shanet-ref-progress__fill {
    height: 100% !important;
    background: linear-gradient(90deg, #22c55e, #16a34a) !important;
    border-radius: 99px !important;
    transition: width 0.6s ease !important;
    min-width: 3% !important;
}
.shanet-referral-result .shanet-ref-progress__footer {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 13px !important;
    color: #555 !important;
    margin: 0 !important;
}
.shanet-referral-result .shanet-ref-progress__footer strong {
    color: #16a34a !important;
    font-weight: 700 !important;
}

/* Referral code section */
.shanet-referral-result .shanet-ref-code-section {
    margin: 0 0 20px 0 !important;
    text-align: left !important;
}
.shanet-referral-result .shanet-ref-code__label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #555 !important;
    margin: 0 0 8px 0 !important;
    display: block !important;
}
.shanet-referral-result .shanet-ref-code__box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #fff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    gap: 12px !important;
}
.shanet-referral-result .shanet-ref-code__value {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #111 !important;
    letter-spacing: 1.5px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace !important;
    line-height: 1.2 !important;
}
.shanet-referral-result .shanet-ref-code__copy {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 18px !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    white-space: nowrap !important;
    font-family: inherit !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
}
.shanet-referral-result .shanet-ref-code__copy:hover {
    background: #f1f5f9 !important;
    border-color: #9ca3af !important;
}
.shanet-referral-result .shanet-ref-code__copy.copied {
    background: #16a34a !important;
    color: #fff !important;
    border-color: #16a34a !important;
}

/* Pre-written message */
.shanet-referral-result .shanet-ref-message {
    background: #fef9ee !important;
    border: 1px solid #fde68a !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin: 0 0 20px 0 !important;
    text-align: left !important;
}
.shanet-referral-result .shanet-ref-message p {
    font-size: 14px !important;
    color: #78350f !important;
    font-style: italic !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Share to Contacts CTA */
.shanet-referral-result .shanet-ref-share-cta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 16px 24px !important;
    background: #f15512 !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    transition: background 0.15s, transform 0.1s !important;
    font-family: inherit !important;
    text-decoration: none !important;
    margin: 0 0 16px 0 !important;
    box-sizing: border-box !important;
}
.shanet-referral-result .shanet-ref-share-cta:hover {
    background: #c44410 !important;
    color: #fff !important;
}
.shanet-referral-result .shanet-ref-share-cta:active {
    transform: scale(0.98) !important;
}
.shanet-referral-result .shanet-ref-share-cta svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

/* Share buttons grid */
.shanet-referral-result .shanet-ref-share-buttons {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin: 0 0 20px 0 !important;
}
.shanet-referral-result .shanet-ref-share-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 14px 8px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    font-family: inherit !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}
.shanet-referral-result .shanet-ref-share-btn:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}
.shanet-referral-result .shanet-ref-share-btn svg {
    width: 24px !important;
    height: 24px !important;
}
.shanet-referral-result .shanet-ref-share-btn--sms svg { color: #2563eb !important; }
.shanet-referral-result .shanet-ref-share-btn--whatsapp svg { color: #25d366 !important; }
.shanet-referral-result .shanet-ref-share-btn--email svg { color: #ea580c !important; }
.shanet-referral-result .shanet-ref-share-btn--facebook svg { color: #1877f2 !important; }

/* Pro Tip */
.shanet-referral-result .shanet-ref-protip {
    background: #fef9ee !important;
    border: 1px solid #fde68a !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    color: #78350f !important;
    line-height: 1.5 !important;
    text-align: left !important;
    margin: 0 !important;
}

/* Loading spinner */
.shanet-ref-spinner {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: shanet-ref-spin 0.6s linear infinite !important;
    vertical-align: middle !important;
    margin-right: 6px !important;
}
@keyframes shanet-ref-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .shanet-referral-result .shanet-ref-code__value {
        font-size: 16px !important;
        letter-spacing: 0.5px !important;
    }
    .shanet-referral-result .shanet-ref-share-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .shanet-referral-result .shanet-ref-share-cta {
        font-size: 15px !important;
    }
}

/* =============================================
   How It Works Section — same red bg
   ============================================= */
.shanet-referral-steps-section {
    padding: 56px 24px 72px;
}

.shanet-referral-steps-inner {
    max-width: 1060px;
    margin: 0 auto;
}

.shanet-referral-steps__title {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 0 0 40px;
}

.shanet-referral-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .shanet-referral-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .shanet-referral-steps {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
}

.shanet-referral-step {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
}

.shanet-referral-step__number {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.shanet-referral-step__heading {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.shanet-referral-step__desc {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .shanet-referral-hero { padding: 56px 20px 36px; }
    .shanet-referral-form-wrap { padding: 32px 24px; }
}
