/* ============================================================
   Refer A Friend — TC-branded two-column layout
   ============================================================ */

/* Page wrapper: full-width section, no centering */
.raf-page {
    background-color: #f2f2f2;
}

/* The panel itself: full-width two-column layout */
.raf-panel {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 220px);
}

/* ---- Left: content ---- */
.raf-panel__content {
    flex: 1;
    background-color: #fffdf9;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* Keep text at a comfortable reading width even on wide screens */
.raf-panel__content .raf-screen {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ---- Right: image ---- */
.raf-panel__image {
    width: 42%;
    min-width: 280px;
    background-color: #5c1028;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.raf-panel__image-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ---- Screen state management ---- */
.raf-screen {
    display: none;
}

.raf-screen--active {
    display: flex;
    flex-direction: column;
}

/* ============================================================
   Screen 1 — Offer
   ============================================================ */

.raf-headline {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.35;
    color: #5c1028;
    margin: 0 0 20px;
    font-family: Georgia, 'Times New Roman', serif;
}

.raf-body-text {
    font-size: 0.78rem;
    color: #777;
    line-height: 1.65;
    margin: 0 0 24px;
}

.raf-body-text p,
.raf-confirmation-subtext p {
    margin: 0 0 8px;
}

.raf-body-text p:last-child,
.raf-confirmation-subtext p:last-child {
    margin-bottom: 0;
}

.raf-body-text a {
    color: #5c1028;
    text-decoration: underline;
}

.raf-body-text a:hover {
    color: #7a1230;
}

.raf-terms-text {
    font-size: 0.72rem;
    color: #999;
    text-align: center;
    margin: 8px 0 8px;
}

.raf-terms-text a {
    color: #5c1028;
    text-decoration: underline;
}

.raf-powered-by {
    font-size: 0.68rem;
    color: #5c1028;
    margin-top: auto;
    padding-top: 20px;
}


/* ============================================================
   Screen 2 — Registration form
   ============================================================ */

.raf-form-heading {
    font-size: 1.45rem;
    font-weight: 400;
    color: #5c1028;
    margin: 0 0 28px;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.3;
}

.raf-form-group {
    margin-bottom: 6px;
}

.raf-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d4d4d4;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

input[type="text"].raf-form-input, input[type="email"].raf-form-input {
    margin-bottom: 0;
}
    
.raf-form-input:focus {
    outline: none;
    border-color: #5c1028;
}

.raf-form-input::placeholder {
    color: #b0b0b0;
}

.raf-form-input.raf-input--error {
    border-color: #c0392b;
}

.raf-field-error {
    font-size: 0.75rem;
    color: #c0392b;
    margin-top: 4px;
    margin-bottom: 10px;
}

/* Give the submit button a little breathing room above the last field */
#rafRegisterBtn {
    margin-top: 8px;
}

.raf-required-note {
    font-size: 0.72rem;
    color: #999;
    margin: 10px 0 4px;
}

.raf-generic-error {
    font-size: 0.85rem;
    color: #c0392b;
    margin-top: 12px;
    text-align: center;
}

/* ============================================================
   Screen 3 — Confirmation
   ============================================================ */

.raf-confirmation {
    display: flex;
    flex-direction: column;
}

.raf-confirmation-heading {
    font-size: 1.35rem;
    color: #5c1028;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    margin: 0 0 8px;
    text-align: center;
    min-height: 1.6em;
}

.raf-confirmation-subtext {
    color: #777;
    font-size: 0.88rem;
    margin: 0 0 18px;
    text-align: center;
}

.raf-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 0 0 18px;
}

.raf-tell-them-heading {
    font-weight: 600;
    font-size: 0.92rem;
    color: #333;
    margin: 0 0 10px;
}

.raf-suggested-message {
    background: #f9f9f9;
    border-left: 3px solid #5c1028;
    border-radius: 0 4px 4px 0;
    padding: 14px 18px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #444;
    margin: 0 0 18px;
    min-height: 2em;
}

.raf-tc-url-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #999;
    display: block;
    margin-bottom: 6px;
}

.raf-tc-url-box {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: border-color 0.2s, background-color 0.2s;
}

.raf-tc-url-box:hover,
.raf-tc-url-box:focus-visible {
    border-color: #5c1028;
    background: #fdf8f9;
    outline: none;
}

.raf-tc-url-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #5c1028;
    text-decoration: none;
    word-break: break-all;
    flex: 1;
}

.raf-tc-url-text:hover {
    text-decoration: underline;
}

.raf-copy-hint {
    font-size: 0.72rem;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}

.raf-copy-hint--copied {
    color: #27ae60;
}

.raf-referral-name-box {
    background: rgba(92, 16, 40, 0.04);
    border: 1.5px solid rgba(92, 16, 40, 0.18);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.raf-referral-name-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #999;
    display: block;
    margin-bottom: 4px;
}

.raf-referral-name-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    min-height: 1.5em;
}

.raf-referral-name-subtext {
    font-size: 0.78rem;
    color: #999;
    margin: 5px 0 0;
    min-height: 1em;
}

.raf-share-guidance {
    font-size: 0.78rem;
    color: #999;
    text-align: center;
    line-height: 1.65;
    margin: 0;
    min-height: 1em;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .raf-panel {
        flex-direction: column;
        min-height: unset;
    }

    .raf-panel__image {
        width: 100%;
        min-width: unset;
        min-height: 220px;
        order: -1;
        flex-shrink: 1;
    }

    .raf-panel__content {
        padding: 32px 20px 44px;
    }

    .raf-panel__content .raf-screen {
        max-width: 100%;
    }

    .raf-headline {
        font-size: 1.3rem;
    }

    .raf-form-heading {
        font-size: 1.2rem;
    }
}
