/* ═══════════════════════════════════════════════════
   Cluny Club – Public Styles
   Matches the dark green / cream design in the screenshot
   ═══════════════════════════════════════════════════ */

:root {
    --cluny-green:       #1a4a2e;
    --cluny-green-light: #2d6e46;
    --cluny-cream:       #f7f3ee;
    --cluny-border:      #e0d8ce;
    --cluny-text:        #1a1a1a;
    --cluny-muted:       #666;
    --cluny-radius:      12px;
}

/* ── Results wrapper ─────────────────────────────────── */
.cluny-results-wrap { font-family: inherit; }
.cluny-results-title {
    text-align: center; font-size: 2rem; font-weight: 800;
    margin-bottom: 8px; color: var(--cluny-text);
}
.cluny-results-subtitle {
    text-align: center; color: var(--cluny-muted);
    margin-bottom: 28px; font-size: 1rem;
}

/* ── Draw card ───────────────────────────────────────── */
.cluny-draw-card {
    background: var(--cluny-cream);
    border: 1px solid var(--cluny-border);
    border-radius: var(--cluny-radius);
    padding: 28px 32px;
    margin-bottom: 32px;
}
.cluny-card--previous {
    padding: 20px 24px;
    background: #fff;
    opacity: .9;
}
.cluny-card--previous .cluny-ball {
    width: 48px; height: 48px; font-size: 18px;
}

/* ── Card header ─────────────────────────────────────── */
.cluny-card-header {
    display: flex; gap: 12px; flex-wrap: wrap;
    align-items: center; justify-content: center;
    margin-bottom: 8px;
}
.cluny-meta-pill {
    border: 1.5px solid var(--cluny-text);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: .95rem;
}
.cluny-draw-byline {
    text-align: center; color: var(--cluny-muted);
    font-size: .9rem; margin-bottom: 24px;
}

/* ── Draw body: two columns ──────────────────────────── */
.cluny-draw-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 640px) {
    .cluny-draw-body { grid-template-columns: 1fr; }
}

/* ── Numbers panel ───────────────────────────────────── */
.cluny-numbers-panel,
.cluny-raffle-panel {
    background: #fff;
    border: 1px solid var(--cluny-border);
    border-radius: var(--cluny-radius);
    padding: 24px;
}
.cluny-numbers-panel h4,
.cluny-raffle-panel h4 {
    text-align: center; font-weight: 700;
    font-size: 1.05rem; margin-top: 0; margin-bottom: 16px;
}

.cluny-balls {
    display: flex; gap: 12px; justify-content: center;
    flex-wrap: wrap; margin-bottom: 20px;
}
.cluny-ball {
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--cluny-green-light), var(--cluny-green));
    color: #fff; font-size: 22px; font-weight: 800;
    box-shadow: 0 4px 10px rgba(26,74,46,.35);
}

.cluny-outcome-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 16px;
}
.cluny-outcome-box {
    border: 1px solid var(--cluny-border); border-radius: 8px;
    padding: 12px; text-align: center;
}
.cluny-outcome-label {
    display: block; font-size: .78rem; color: var(--cluny-muted);
    margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em;
}
.cluny-outcome-box strong { font-size: 1rem; }

.cluny-next-jackpot {
    text-align: center; font-size: .95rem;
    margin-bottom: 16px; color: var(--cluny-muted);
}
.cluny-next-jackpot strong { color: var(--cluny-green); }

.cluny-join-btn {
    display: block; text-align: center;
    background: var(--cluny-green); color: #fff !important;
    border-radius: 8px; padding: 12px 20px;
    font-weight: 700; font-size: 1rem; text-decoration: none !important;
    margin-top: 4px; transition: background .2s;
}
.cluny-join-btn:hover { background: var(--cluny-green-light); }

/* ── Raffle panel ────────────────────────────────────── */
.cluny-raffle-sub {
    text-align: center; color: var(--cluny-muted);
    font-size: .9rem; margin-bottom: 16px;
}
.cluny-raffle-list {
    list-style: none; margin: 0; padding: 0;
}
.cluny-raffle-item {
    display: flex; justify-content: space-between; align-items: center;
    border: 1px solid var(--cluny-border); border-radius: 8px;
    padding: 12px 16px; margin-bottom: 8px;
    background: var(--cluny-cream);
}
.cluny-raffle-name { font-weight: 700; }
.cluny-raffle-prize { font-weight: 700; color: var(--cluny-green); }
.cluny-raffle-footer {
    font-size: .82rem; color: var(--cluny-muted);
    text-align: center; margin-top: 16px; margin-bottom: 0;
}
.cluny-raffle-footer a { color: var(--cluny-green); }

/* ── Previous draws section ──────────────────────────── */
.cluny-previous-title {
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 16px; color: var(--cluny-muted);
    border-top: 1px solid var(--cluny-border); padding-top: 24px;
}

/* ── Numbers form ────────────────────────────────────── */
.cluny-numbers-form-wrap { max-width: 640px; }
.cluny-numbers-form { }

.cluny-form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 500px) { .cluny-form-row { grid-template-columns: 1fr; } }

.cluny-form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.cluny-form-group label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.cluny-form-group input[type="text"],
.cluny-form-group input[type="email"],
.cluny-form-group input[type="tel"] {
    border: 1.5px solid #ccc; border-radius: 6px; padding: 10px 12px;
    font-size: 1rem; width: 100%; box-sizing: border-box;
    transition: border-color .2s;
}
.cluny-form-group input:focus { outline: none; border-color: var(--cluny-green); }
.cluny-form-group input[readonly] { background: #f5f5f5; cursor: not-allowed; }

.req { color: #c0392b; }

/* ── Number picker ───────────────────────────────────── */
.cluny-number-picker-group label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.cluny-picker-hint { color: var(--cluny-muted); font-size: .85rem; margin-bottom: 12px; }

.cluny-number-picker {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 12px;
}
.cluny-pick-btn {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
    background: #fff !important;
    border: 1px solid rgba(24,74,44,0.22) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06) !important;
    font-weight: 900 !important;
    color: #0b1220 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease !important;
}
.cluny-pick-btn:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(24,74,44,0.38) !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.10) !important;
    color: #0b1220 !important;
    background: #fff !important;
}
.cluny-pick-btn.selected {
    background: rgba(198,164,80,0.22) !important;
    border-color: rgba(198,164,80,0.75) !important;
    color: #184A2C !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12) !important;
    background-image: none !important;
}
.cluny-pick-btn.disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none !important;
}

.cluny-selected-display {
    font-size: .9rem; color: var(--cluny-muted); margin-bottom: 8px;
}
#clunySelectedNums { font-weight: 700; color: var(--cluny-green); }

.cluny-checkbox-label {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: .9rem; cursor: pointer;
}
.cluny-checkbox-label input { margin-top: 3px; flex-shrink: 0; }

.cluny-submit-btn {
    display: block; width: 100%;
    background: var(--cluny-green); color: #fff;
    border: none; border-radius: 8px; padding: 14px 20px;
    font-size: 1.1rem; font-weight: 700; cursor: pointer;
    margin-top: 8px; transition: background .2s, opacity .2s;
}
.cluny-submit-btn:hover:not(:disabled) { background: var(--cluny-green-light); }
.cluny-submit-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── Feedback boxes ──────────────────────────────────── */
.cluny-success-box {
    background: #d4edda; border: 1px solid #28a745;
    border-radius: 8px; padding: 24px; max-width: 500px;
}
.cluny-success-box h3 { margin-top: 0; color: #155724; }

.cluny-error-box {
    background: #f8d7da; border: 1px solid #f5c6cb;
    border-radius: 8px; padding: 16px; margin-bottom: 16px;
}
.cluny-error-box h3 { margin-top: 0; color: #721c24; }
.cluny-error-box p { margin: 0; color: #721c24; }

.cluny-no-draws { color: var(--cluny-muted); font-style: italic; }

/* ── Inline shortcode outputs ────────────────────────── */
.cluny-jackpot-amount { font-weight: 700; color: var(--cluny-green); }
.cluny-member-count   { font-weight: 700; }

/* ═══════════════════════════════════════════════════
   Cluny Club – Form styling to match existing site
   Gold/Green theme matching Forminator form design
   ═══════════════════════════════════════════════════ */

:root {
    --fgc-green:  #184A2C;
    --fgc-green2: #0f3a21;
    --gold:       #C6A450;
    --ink:        #0b1220;
    --muted:      #5b6472;
    --card:       #ffffff;
    --border:     #e6e8ec;
    --shadow:     0 10px 24px rgba(0,0,0,0.08);
    --fgc-radius: 18px;
}

/* ── Outer card wrapper ──────────────────────────── */
.cluny-numbers-form-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--fgc-radius);
    box-shadow: var(--shadow);
    padding: 28px 24px;
    max-width: 720px;
    margin: 0 auto;
}

/* ── Form headings ───────────────────────────────── */
.cluny-numbers-form-wrap h2,
.cluny-numbers-form-wrap h3 {
    text-align: center;
    font-weight: 900;
    color: var(--ink);
}

/* ── Input fields ────────────────────────────────── */
.cluny-numbers-form-wrap input[type="text"],
.cluny-numbers-form-wrap input[type="email"],
.cluny-numbers-form-wrap input[type="tel"] {
    border-radius: 14px !important;
    border: 1px solid rgba(24,74,44,0.18) !important;
    box-shadow: none !important;
    padding: 10px 14px;
}
.cluny-numbers-form-wrap input:focus {
    outline: none !important;
    border-color: rgba(24,74,44,0.42) !important;
    box-shadow: 0 0 0 4px rgba(24,74,44,0.10) !important;
}
.cluny-numbers-form-wrap input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* ── Number picker tiles (replaces circles) ──────── */
.cluny-number-picker {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(52px, 52px)) !important;
    gap: 10px !important;
    justify-content: center !important;
    margin-bottom: 16px;
}

.cluny-pick-btn {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    background: #fff !important;
    border: 1px solid rgba(24,74,44,0.22) !important;
    box-shadow: 0 10px 18px rgba(0,0,0,0.06) !important;
    font-weight: 900 !important;
    color: var(--ink) !important;
    font-size: 15px !important;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease !important;
}

.cluny-pick-btn:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(24,74,44,0.38) !important;
    box-shadow: 0 14px 24px rgba(0,0,0,0.10) !important;
    color: var(--ink) !important;
}

/* Selected state — soft gold fill */
.cluny-pick-btn.selected {
    background: rgba(198,164,80,0.22) !important;
    border-color: rgba(198,164,80,0.75) !important;
    color: var(--fgc-green) !important;
    box-shadow: 0 16px 26px rgba(0,0,0,0.12) !important;
    /* override the dark green circle from base styles */
    background-image: none !important;
}

.cluny-pick-btn.disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Submit button — gold with green text ────────── */
.cluny-submit-btn {
    background: var(--gold) !important;
    color: var(--fgc-green) !important;
    border: 1px solid rgba(24,74,44,0.28) !important;
    border-radius: 14px !important;
    font-weight: 900 !important;
    padding: 12px 18px !important;
    min-height: 46px !important;
    box-shadow: 0 12px 22px rgba(0,0,0,0.10) !important;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: filter .15s, transform .15s;
}
.cluny-submit-btn:hover:not(:disabled) {
    filter: brightness(0.97);
    transform: translateY(-1px);
    background: var(--gold) !important;
}
.cluny-submit-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ── Consent checkbox label ──────────────────────── */
.cluny-checkbox-label {
    color: var(--muted);
    font-size: .92rem;
}

/* ── Selected display text ───────────────────────── */
#clunySelectedNums { color: var(--fgc-green); }

/* ── Success / error boxes ───────────────────────── */
.cluny-success-box {
    background: #fbf7ea;
    border: 1px solid rgba(198,164,80,0.45);
    border-radius: var(--fgc-radius);
    padding: 24px;
}
.cluny-success-box h3 { color: var(--fgc-green); margin-top: 0; }

.cluny-error-box {
    border-radius: 14px;
    background: #fff0f0;
    border: 1px solid #f5c6c6;
}

/* ── Fine print below form ───────────────────────── */
.cluny-form-fine {
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
}
.cluny-form-fine a {
    color: var(--fgc-green) !important;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ══ FINAL OVERRIDE: number tiles ══ */
.cluny-pick-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 1.5px solid rgba(24,74,44,0.22) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    color: #0b1220 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: all .12s ease !important;
}
.cluny-pick-btn.selected {
    background: rgba(198,164,80,0.25) !important;
    background-image: none !important;
    border-color: rgba(198,164,80,0.8) !important;
    color: #184A2C !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}
.cluny-number-picker {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, 52px) !important;
    gap: 8px !important;
    justify-content: center !important;
    max-width: 400px !important;
    margin: 12px auto 16px auto !important;
}

/* ══ CRITICAL OVERRIDES — beat theme CSS ══ */
.cluny-numbers-form-wrap {
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 640px !important;
    padding: 28px 24px !important;
}
.cluny-form-row {
    justify-content: center !important;
    text-align: left !important;
}
.cluny-form-group {
    text-align: left !important;
}
.cluny-number-picker-group {
    text-align: center !important;
}
.cluny-number-picker {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, 52px) !important;
    gap: 8px !important;
    justify-content: center !important;
    max-width: 380px !important;
    margin: 12px auto 16px auto !important;
}
.cluny-pick-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 1.5px solid rgba(24,74,44,0.25) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0b1220 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: all .12s ease !important;
}
.cluny-pick-btn:hover {
    background: #f5f5f5 !important;
    border-color: rgba(24,74,44,0.4) !important;
    transform: translateY(-1px) !important;
    color: #0b1220 !important;
}
.cluny-pick-btn.selected {
    background: rgba(198,164,80,0.25) !important;
    background-image: none !important;
    border-color: #C6A450 !important;
    color: #184A2C !important;
    box-shadow: 0 4px 12px rgba(198,164,80,0.3) !important;
}
.cluny-pick-btn.disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    transform: none !important;
}
.cluny-submit-btn {
    background: #C6A450 !important;
    background-image: none !important;
    color: #184A2C !important;
    border: 1.5px solid rgba(24,74,44,0.3) !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    padding: 14px 20px !important;
    width: 100% !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}
.cluny-submit-btn:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}
.cluny-selected-display,
.cluny-picker-hint {
    text-align: center !important;
    display: block !important;
}

/* ── Previous draws — compact rows ──────────────────────────────────────── */
.cluny-previous-draws { margin-top: 24px; }
.cluny-previous-title {
    font-size: 1rem; font-weight: 700; color: var(--cluny-muted);
    border-top: 1px solid var(--cluny-border); padding-top: 20px;
    margin-bottom: 10px;
}
.cluny-draw-compact {
    display: grid;
    grid-template-columns: 140px auto 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--cluny-border);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: .88rem;
}
@media (max-width: 640px) {
    .cluny-draw-compact {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .cluny-compact-winners { grid-column: 1 / -1; }
}
.cluny-compact-date {
    font-weight: 700;
    color: var(--cluny-text);
    white-space: nowrap;
}
.cluny-compact-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}
.cluny-compact-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cluny-green);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.cluny-compact-jackpot {
    color: var(--cluny-muted);
    white-space: nowrap;
}
.cluny-compact-winners {
    color: var(--cluny-muted);
    font-size: .84rem;
}
