/* Exact CSS from mockup with proper scope - UPDATED for image logo and purple background with pickleball pattern */
:root{
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #334155;           /* Updated body text color */
  --muted: #64748b;         /* Slate-500 */
  --line: #e2e8f0;          /* Slate-200 */
  --primary: #1D4ED8;       /* Updated link color */
  --primary-rgb: 29,78,216; /* Updated for focus ring */
  --radius: 14px;
}

/* Prevent style clashes with site frameworks */
.notify-wrap, .notify-card, .notify-header, .notify-fields, .notify-field, .notify-input, .notify-label, .notify-check, .notify-actions, .notify-btn {
  box-sizing: border-box;
}

html,body{height:100%;}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  /* BG Color - Change purple background here */
  background: #8b5cf6; /* solid purple background */
  background-image: url('../images/bg_pickleball_lineart_512.png');
  background-repeat: repeat;
  background-size: 512px 512px; /* adjust density */
  color: var(--ink);
}

.notify-wrap{ min-height:100%; display:grid; place-items:center; padding: 32px 16px; }

.notify-card{
  width:100%; max-width: 720px; /* grows on large screens but caps width */
  background: var(--card);
  border:1px solid var(--line);
  border-radius: 32px; /* Restore larger radius from original */
  box-shadow: 0 10px 25px -5px rgba(0,0,0,.08),0 8px 10px -6px rgba(0,0,0,.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header with updated gradient background and reduced wave space */
.notify-header {
    background: linear-gradient(180deg, #F1E4C4 0%, #E6D0A3 55%, #DABC77 100%);
    color: #1E293B; /* slate-900 */
    padding: 2.25rem 1.25rem 2.25rem; /* reduced bottom padding */
    position: relative;
    text-align: center;
}

    /* Wave shrunk (was 70px) */
    .notify-header::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -20px; /* was -70px */
        height: 20px;  /* was 70px */
        background: radial-gradient(circle at 12% 100%, #fff 34%, rgba(255,255,255,0) 35%), radial-gradient(circle at 32% 100%, #fff 40%, rgba(255,255,255,0) 41%), radial-gradient(circle at 52% 100%, #fff 36%, rgba(255,255,255,0) 37%), radial-gradient(circle at 72% 100%, #fff 42%, rgba(255,255,255,0) 43%), radial-gradient(circle at 92% 100%, #fff 34%, rgba(255,255,255,0) 35%), linear-gradient(#fff,#fff);
        background-size: 20% 100%,20% 100%,20% 100%,20% 100%,20% 100%,100% 100%;
        background-position: 0 0,20% 0,40% 0,60% 0,80% 0,0 0;
        background-repeat: no-repeat;
    }



/* Logo styling for actual image - allow natural width */
.notify-logo{ 
  max-width: 100%; /* allow image to use natural width within container */
  height:auto; 
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); 
  margin-bottom: 12px;
}

.notify-title{ 
  font-size: clamp(1.45rem, 2.1vw, 1.9rem); 
  font-weight:600; 
  letter-spacing:.5px; 
  margin:0; 
  color: #000;
}
.notify-subtitle{ 
  color: #000;
  margin-top: 2px; 
  font-size: 14px; 
}

/* Form body with proper spacing for new smaller wave (top padding reduced) */
.notify-form{ 
  display:grid; 
  gap:16px; 
  margin-top:-20px; 
  padding: 2.9rem clamp(1.4rem,2.8vw,2.4rem) 2.2rem; /* top was 3.9rem */
}

/* Responsive, stable 2-column grid that collapses on small screens */
.notify-fields{ display:grid; gap:16px; align-items:start; grid-template-columns: 1fr; }
@media (min-width: 680px){ .notify-fields{ grid-template-columns: 1fr 1fr; } }

/* Floating label inputs */
.notify-field{ position: relative; }
.notify-input{
  width:100%;
  padding: 14px 14px;
  border:1px solid #cbd5e1; /* slate-300 */
  border-radius: 12px;
  background: #fff;
  font-size: 16px; line-height: 24px; color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  height: 52px; /* consistent height */
  -webkit-appearance: none; appearance: none;
}
.notify-input::placeholder{ color: transparent; }
.notify-label{
  position:absolute; left:12px; top:50%; transform: translateY(-50%);
  padding: 0 6px; background:transparent; color: var(--muted);
  pointer-events:none; transition: all .16s ease;
  font-size: 14px; border-radius:6px;
}

.notify-input:focus{ border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12); }
.notify-input:not(:placeholder-shown) + .notify-label,
.notify-input:focus + .notify-label{ top: -8px; font-size: 12px; color: var(--primary); }

/* Select styled to match inputs */
.notify-field.select select.notify-input{
  padding-right: 44px; /* room for chevron */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" stroke="%2364748b" stroke-width="2" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat:no-repeat; background-position: right 12px center; background-size:20px;
}
/* Keep select label raised so rows align cleanly */
.notify-field.select .notify-label{ top:-16px; font-size:12px; transform:none; color: var(--muted); }
.notify-field.select select.notify-input:focus + .notify-label{ color: var(--primary); }

/* Select floating label behavior adjusted so it matches other placeholders */
.notify-field.select { position:relative; }
.notify-field.select .notify-label { transition:all .16s ease; color: var(--muted); }
/* Base (no value, not focused) acts like placeholder centered */
.notify-field.select:not(.has-value):not(:focus-within) .notify-label { top:50%; left:12px; transform:translateY(-50%); font-size:14px; }
/* Raised state when value present or focused */
.notify-field.select.has-value .notify-label, .notify-field.select:focus-within .notify-label { top:-16px; transform:none; font-size:12px; }
/* match raised select label color to other filled inputs */
.notify-field.select.has-value .notify-label { color: var(--primary); }

/* Checkbox - left aligned */
.notify-check{ display:flex; gap:10px; align-items:flex-start; justify-content:flex-start; }
.notify-check input{ width:18px; height:18px; margin-top:2px; accent-color: var(--primary); flex:0 0 18px; }
.notify-check p{ margin:0; color: var(--muted); font-size: 14px; text-align: left; }
.notify-check a{ color: var(--primary); text-decoration: none; }
.notify-check a:hover{ text-decoration: underline; }

/* Text + bullets below submit button indentation and spacing */
.sms-consent-info{ margin-left:8px; }
.sms-consent-info p{ margin:0 0 8px; }
.sms-consent-info ul{ margin:0 0 4px 1.25em; padding:0; }

/* Align checkbox block with bullet text and tighten vertical gap */
.notify-check-group{ border:0; margin:4px 0 0; padding:0 0 0 1.25em; margin-left:8px; display:grid; gap:12px; }

/* Ensure checkbox labels wrap nicely aligned */
.notify-check label{ line-height:1.35; }
/* Group wrapper alignment (remove default fieldset styles) */
.notify-check-group{ border:0; margin:4px 0 0; padding:0; display:grid; gap:12px; }

.notify-actions{ margin-top: 8px; }
.notify-btn{
  width:100%; display:inline-grid; place-items:center;
  padding:14px 16px; border-radius: 12px;
  background: #042E4C; /* Changed to solid dark blue color */
  color:#fff; font-weight:700; font-size: 16px; letter-spacing:.2px;
  border: none; cursor: pointer; transition: transform .02s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 22px rgba(4,46,76, .25); /* Updated shadow to match new color */
}
.notify-btn:hover{ filter: brightness(1.05); }
.notify-btn:active{ transform: translateY(1px); }

.help{ color: var(--muted); font-size: 12.5px; margin-top: -4px; }

/* Status message styling - centered below submit button and red for errors */
.notify-status{ 
  margin-bottom: 16px;
  font-size: 14px; 
  text-align: center;
  color: #dc2626; /* red color for error messages */
  font-weight: 500;
}

/* Override any existing Blazor styles that might interfere */
.notify-card * {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji" !important;
}

/* Validation message overrides */
.notify-card .validation-summary-errors {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.notify-card .validation-message {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
    .notify-card { border-radius:28px; }
    .notify-header { padding:1.9rem 1rem 1.9rem; } /* reduce mobile bottom padding too */
    .notify-form { padding:2.6rem 1.35rem 2rem; } /* reduced top */
}

/* Restore Blazor loading progress styles */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #fbbf24; /* Changed to gold/yellow color */
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: #fbbf24; /* Match the progress bar color */
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMzOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA6NTUuNTY=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

code {
    color: #c02d76;
}