/* ====================================================
   CASH A FRIEND — SHARED CSS
   Loaded by every page. Do not duplicate these rules
   in individual page <style> blocks.
   ==================================================== */

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    width: 100%; min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f0fa;
    color: #222222;
    line-height: 1.5;
}

/* ---------- Sticky top area ---------- */

.cash-top { position: sticky; top: 0; z-index: 1000; width: 100%; }

/* ---------- Header ---------- */

.cash-header {
    background: #6f2dbd;
    color: #ffffff;
    padding: 3px 6px;
    height: 66px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.25s ease, padding 0.25s ease;
}

/* Logo is wrapped in a link to home */
.cash-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 100%;
}

.cash-logo {
    width: 200px;
    height: 60px;
    object-fit: contain;
    transform-origin: center center;
    transition: width 0.25s ease, height 0.25s ease;
}

.cash-top.scrolled .cash-header { height: 20px; padding: 1px 3px; }
.cash-top.scrolled .cash-logo   { width: 60px; height: 18px; }

/* ---------- Navigation ---------- */

.cash-nav {
    background: #57239a;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cash-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 50px;
    display: block;
}

.cash-nav a:hover { background: #431a78; }

/* Active page — pressed-in look */
.cash-nav a[aria-current="page"] {
    background: #431a78;
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.35);
    pointer-events: none;
    cursor: default;
}

/* ---------- Main container ---------- */

.cash-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 0 8px;
}

/* ---------- Standard card ---------- */

.box {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

.box h1 { margin: 0 0 10px; color: #6f2dbd; font-size: 24px; }
.box h2 { margin-top: 0; color: #6f2dbd; font-size: 22px; }

/* ---------- Buttons ---------- */

.cash-button {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    padding: 14px 18px;
    border: none;
    border-radius: 7px;
    background: #6f2dbd;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}
.cash-button:hover  { background: #57239a; }
.cash-button:active { transform: translateY(1px); }

.cash-button-secondary {
    background: #eeeeee;
    color: #333333;
    border: 1px solid #cccccc;
}
.cash-button-secondary:hover { background: #dddddd; }

.cash-submit { width: 100%; max-width: none; margin-top: 24px; }

/* ---------- Forms ---------- */

label {
    display: block;
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 6px;
    color: #333333;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cccccc;
    border-radius: 7px;
    font-size: 16px;
    background: #ffffff;
    color: #222222;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #6f2dbd;
    box-shadow: 0 0 0 3px rgba(111,45,189,0.12);
}

/* ---------- Footer ---------- */

.cash-footer {
    text-align: center;
    padding: 25px 15px;
    color: #777777;
    font-size: 13px;
}
.cash-footer strong { color: #6f2dbd; }
.cash-footer p { margin: 5px 0; }
.cash-footer a { color: #6f2dbd; text-decoration: none; }
.cash-footer a:hover { text-decoration: underline; }

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
    .cash-header { padding: 3px; height: 66px; }
    .cash-logo   { width: 200px; height: 60px; }
    .cash-top.scrolled .cash-header { height: 20px; padding: 1px 3px; }
    .cash-top.scrolled .cash-logo   { width: 60px; height: 18px; }
    .cash-nav a { padding: 11px 12px; font-size: 14px; }
    .cash-container { margin-top: 20px; }
    .box { padding: 20px; border-radius: 10px; }
}