/* ==========================================================================
   ISE 30th Anniversary - Web Design System & Styles
   ========================================================================== */

:root {
  --primary-red: #EE3332;
  --primary-red-hover: #d82524;
  --primary-red-active: #bd1c1b;
  --card-bg: #F3F3F3;
  --card-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
  --text-main: #222222;
  --text-muted: #444444;
  --text-light: #777777;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-card: 0px;
  --radius-banner: 24px;
  --radius-btn: 34px;
  --radius-input: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: #3e4147;
  /* Authentic film grain with softened ambient lighting */
  background-image: 
    radial-gradient(ellipse at 52% 40%, rgba(0, 0, 0, 0) 40%, rgba(12, 13, 15, 0.26) 80%, rgba(8, 9, 10, 0.48) 100%),
    linear-gradient(135deg, rgba(10, 11, 13, 0.32) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0) 65%, rgba(10, 11, 13, 0.36) 100%),
    url("assets/images/website_bg.png");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light Background Theme Variant (Exact #F3F3F3 Matching Card & Logo) */
body.bg-white,
body.bg-light {
  background-color: var(--card-bg);
  background-image: none;
}

body.bg-white .invitation-card,
body.bg-light .invitation-card {
  background-color: var(--card-bg);
  box-shadow: none;
}

/* ==========================================================================
   Main Event Invitation Card (Ultra Wide, Crisp Straight Edges)
   ========================================================================== */

.invitation-card {
  width: 100%;
  max-width: 1680px;
  background: var(--card-bg);
  border-radius: 0;
  box-shadow: var(--card-shadow);
  padding: 70px 96px 76px 96px;
  position: relative;
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 42px;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: flex-start;
}

.logo-img {
  width: 215px;
  max-width: 215px;
  height: auto;
  display: block;
}

/* Event Info (Right Aligned - Proportional Hierarchy) */
.event-info {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.5;
}

.info-title {
  font-size: 19px;
  font-weight: 400;
  color: #2b2b2b;
}

.info-datetime {
  font-size: 21px;
  font-weight: 600;
  color: #111111;
}

.info-location-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.location-link {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 21px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.location-link:hover {
  color: var(--primary-red-hover);
}

.pin-icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.info-dresscode {
  font-size: 18.5px;
  color: #444444;
  margin-top: 3px;
}

.info-rsvp {
  font-size: 18.5px;
  font-weight: 700;
  color: var(--primary-red);
  margin-top: 3px;
}

/* ==========================================================================
   Banner Container & Form (Straight Edges, Ultra Wide)
   ========================================================================== */

.card-banner {
  width: 100%;
  height: 440px;
  border-radius: var(--radius-banner);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #202020;
}

.banner-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 60px;
  display: flex;
  justify-content: center;
}

.rsvp-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 1020px;
}

.input-wrapper {
  flex: 1;
  max-width: 660px;
}

.rsvp-input {
  width: 100%;
  height: 68px;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  padding: 0 28px;
  font-size: 20px;
  font-family: inherit;
  color: #1a1a1a;
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rsvp-input::placeholder {
  color: #909090;
  font-weight: 400;
}

.rsvp-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(238, 51, 50, 0.35);
}

.rsvp-btn {
  height: 68px;
  background-color: var(--primary-red);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-btn);
  padding: 0 48px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(238, 51, 50, 0.45);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rsvp-btn:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 51, 50, 0.55);
}

.rsvp-btn:active {
  background-color: var(--primary-red-active);
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(238, 51, 50, 0.4);
}

/* ==========================================================================
   Animated Thank You Message Overlay
   ========================================================================== */

.thank-you-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(18, 20, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 38px 54px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  max-width: 680px;
  width: 90%;
  animation: popInSuccess 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  z-index: 10;
}

@keyframes popInSuccess {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  70% {
    transform: scale(1.02) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-icon-wrap {
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  position: relative;
}

.checkmark-svg {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--primary-red);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--primary-red);
  animation: fillCircle 0.4s ease-in-out 0.4s forwards, scaleCircle 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: var(--primary-red);
  fill: none;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #FFFFFF;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  animation: strokeCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

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

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

@keyframes fillCircle {
  100% {
    box-shadow: inset 0px 0px 0px 34px var(--primary-red);
  }
}

.thank-you-title {
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}

.thank-you-text {
  font-size: 18px;
  color: #E2E4E8;
  line-height: 1.5;
  max-width: 480px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
  body {
    padding: 32px 20px;
  }
  
  .invitation-card {
    padding: 52px 56px 56px 56px;
  }

  .card-banner {
    height: 360px;
  }

  .logo-img {
    width: 220px;
    max-width: 220px;
  }

  .info-title, .info-datetime, .location-link, .info-dresscode, .info-rsvp {
    font-size: 19px;
  }

  .rsvp-form {
    gap: 22px;
    max-width: 860px;
  }

  .rsvp-input {
    height: 58px;
    padding: 0 22px;
    font-size: 18px;
  }

  .rsvp-btn {
    height: 58px;
    padding: 0 36px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 24px 12px;
  }

  .invitation-card {
    padding: 36px 20px 38px 20px;
  }

  .card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    margin-bottom: 32px;
  }

  .logo-img {
    width: 190px;
    max-width: 190px;
  }

  .event-info {
    text-align: center;
    align-items: center;
    gap: 6px;
  }

  .info-location-row {
    justify-content: center;
  }

  .info-title {
    font-size: 16px;
  }

  .info-datetime, .location-link {
    font-size: 17.5px;
  }

  .info-dresscode, .info-rsvp {
    font-size: 16.5px;
  }

  .card-banner {
    height: 300px;
    border-radius: 14px;
  }

  .banner-content {
    padding: 0 20px;
  }

  .rsvp-form {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 16px;
  }

  .input-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .rsvp-input {
    width: 100%;
    height: 52px;
    font-size: 16px;
    text-align: center;
  }

  .rsvp-btn {
    width: 100%;
    height: 52px;
    font-size: 15px;
  }
}
