/* TicketVerz — custom site styles
   Keep this file minimal; main layout uses Tailwind classes.
*/


/* Import a display font for headings */
@import url('https://fonts.googleapis.com/css2?family=Amarna:wght@400;700&display=swap');


:root{
  --brand: #E50914;
  --bg: #ffffff;
  --text: #0f172a; /* slate-900 */
  --muted: #6B7280; /* gray-500 */
}

html,body{ height:100%; }

body{
  font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* H1 uses a distinctive display font */
h1{ 
  font-family: 'Amarna', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Small utilities used by the page (kept here for quick tweaks) */
.brand-text{
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 600;
}
.muted { color: #9CA3AF; }

/* Ticket option pills */
.ticket-pill{
  border: 1px solid #D1D5DB; /* neutral-300 */
  border-radius: 0.5rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  transition: all .12s ease;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ticket-pill:hover{ transform: translateY(-2px); }
.ticket-peer:checked + .ticket-pill{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Override ID-based display for the thank you message when hidden */
#thankyou.hidden { display: none; }

/* Form controls: consolidate repeated styles for inputs and selects */
.form-control{
  background-color: #F3F4F6; /* neutral-100 */
  border: 1px solid #D1D5DB; /* neutral-300 */
  color: var(--text);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  min-height: 3rem;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.form-control::placeholder{ color: var(--muted); }
.form-control:focus{ outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(229,9,20,0.08); }

.form-control-error {
    border-color: var(--brand); /* Use brand color for errors for consistency */
}

.form-control-error:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.error-text {
    color: var(--brand);
    font-size: 0.875rem; /* text-sm */
    margin-top: 0.25rem; /* mt-1 */
    display: none; /* Hidden by default */
}

/* Primary button */
.btn-primary{
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  min-height: 3.5rem;
  transition: transform .08s ease, background-color .12s ease;
  box-shadow: 0 8px 20px rgba(14,28,37,0.08);
  cursor: pointer;
}
.btn-primary:hover{ background: #c80711; }
.btn-primary:active{ transform: scale(.98); }

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Card container for the hero */
.card{
  background-color: var(--bg);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(2,6,23,0.08);
  border: 1px solid #E5E7EB;
}

/* Larger GDPR checkbox */
.gdpr-checkbox{
  width: 1.25rem;
  height: 1.25rem;
  -webkit-appearance: auto;
  appearance: auto;
  vertical-align: middle;
  accent-color: var(--brand);
  transform: translateY(0.05rem);
}

/* Elegant "Thank You" message styles */
#thankyou {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

#thankyou.visible {
    opacity: 1;
}

.thank-you-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; /* 12px */
}

.checkmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4bb543; /* A nice green */
    stroke-miterlimit: 10;
    margin: 0 auto 1rem;
    box-shadow: inset 0px 0px 0px #4bb543;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4bb543;
    fill: none;
    animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #fff;
    animation: stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4bb543;
    }
}
