/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background: #0a0e27;
  color: #e0e6ed;
  overflow-x: hidden;
}

body {
  position: relative;
  margin: 0;
  padding: 0;
}

h1, h2 {
  font-family: inherit;
  font-weight: 400;
  margin: 10px 0;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }

p {
  line-height: 2;
  margin: 10px 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button {
  border: none;
  cursor: pointer;
  font: inherit;
}

/* Layout utilities */
.zv-container {
  padding: 0.01em 16px;
}

.zv-content {
  max-width: 980px;
  margin: auto;
}

.zv-row::after {
  content: "";
  display: table;
  clear: both;
}

.zv-half {
  float: left;
  width: 50%;
  padding: 0 8px;
}

/* Display utilities */
.zv-display-container {
  position: relative;
}

.zv-display-middle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Header text background - Space themed */
header .zv-display-middle {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.3) 0%, rgba(124, 58, 237, 0.3) 100%);
  backdrop-filter: blur(10px);
  padding: 32px 48px;
  border-radius: 16px;
  border: 2px solid rgba(147, 197, 253, 0.3);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.3);
}

.zv-bottom {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1;
}

/* Spacing utilities */
.zv-padding {
  padding: 8px 16px;
}

.zv-padding-64 {
  padding-top: 64px;
  padding-bottom: 64px;
}

.zv-padding-large {
  padding: 12px 24px;
}

/* Color utilities - Space Theme */
.zv-white {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(26, 31, 58, 0.95) 100%);
  color: #e0e6ed;
}

.zv-modal .zv-container.zv-white {
  background: transparent;
}

.zv-black {
  background-color: #0a0e27;
  color: #e0e6ed;
}

.zv-pale-red {
  background: linear-gradient(135deg, #1a1f3a 0%, #2d1b4e 100%);
  color: #e0e6ed;
}

.zv-red {
  background: linear-gradient(135deg, #c62368 0%, #8b1e5f 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(198, 35, 104, 0.4);
}

.zv-green {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.zv-text-white {
  color: #fff;
}

.zv-text-grey {
  color: #a0aec0;
}

/* Typography utilities */
.zv-center {
  text-align: center;
}

.zv-jumbo {
  font-size: 64px;
}

.zv-large {
  font-size: 18px;
}

.zv-xlarge {
  font-size: 24px;
}

.zv-wide {
  letter-spacing: 4px;
}

/* Effects */
.zv-grayscale-min {
  filter: grayscale(50%);
}

.zv-opacity {
  opacity: 0.6;
}

.zv-opacity-min {
  opacity: 0.75;
}

.zv-hover-opacity-off:hover {
  opacity: 1;
}

/* Bar component - Space Theme */
.zv-bar {
  width: 100%;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(147, 197, 253, 0.2);
}

.zv-bar::after {
  content: "";
  display: table;
  clear: both;
}

.zv-bar-item {
  float: left;
  padding: 8px 16px;
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Button component - Space Theme */
.zv-button {
  border: none;
  display: inline-block;
  padding: 8px 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-color: inherit;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.zv-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px 0 rgba(79, 70, 229, 0.4);
}

.zv-bar-item.zv-button {
  width: auto;
}

.zv-hover-black:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.5);
}

.zv-block {
  display: block;
  width: 100%;
}

/* Input component - Space Theme */
.zv-input {
  padding: 8px;
  display: block;
  width: 100%;
  font: inherit;
  margin: 8px 0;
  background: rgba(30, 41, 59, 0.5);
  color: #e0e6ed;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.zv-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
  background: rgba(30, 41, 59, 0.7);
}

.zv-border {
  border: 1px solid rgba(147, 197, 253, 0.3);
}

/* Select and textarea styling */
select.zv-input {
  background: rgba(30, 41, 59, 0.5);
  cursor: pointer;
}

select.zv-input option {
  background: #1e293b;
  color: #e0e6ed;
}

textarea.zv-input {
  font-family: inherit;
  line-height: 1.5;
}

/* Form labels */
label {
  color: #93c5fd;
}

/* Border utilities */
.zv-round {
  border-radius: 4px;
}

.zv-round-large {
  border-radius: 8px;
}

/* Modal component - Space Theme */
.zv-modal {
  display: none;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(5px);
  padding-top: 60px;
}

.zv-modal-content {
  margin: auto;
  background: linear-gradient(135deg, #1e293b 0%, #1a1f3a 100%);
  border: 2px solid rgba(147, 197, 253, 0.3);
  position: relative;
  padding: 0;
  outline: 0;
  width: 600px;
  border-radius: 16px;
}

.zv-card-4 {
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.5), 0 4px 20px rgba(124, 58, 237, 0.3);
}

.zv-animate-zoom {
  animation: animatezoom 0.6s;
}

@keyframes animatezoom {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Background images - Space Theme */
.bgimg, .bgimg2 {
  min-height: 100%;
  background-position: center;
  background-size: cover;
  position: relative;
}

.bgimg::before,
.bgimg2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  opacity: 0.3;
  z-index: 0;
}

.bgimg {
  background-image: url("../Images/couple.jpeg");
  background-blend-mode: soft-light;
  background-color: #1a1f3a;
}

.bgimg2 {
  background-image: url("../Images/evergreen.jpeg");
  background-blend-mode: soft-light;
  background-color: #1a1f3a;
}

/* Starfield effect */
.bgimg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 60px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 50px 50px, #ddd, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 10px, #eee, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: twinkle 5s ease-in-out infinite;
  opacity: 0.5;
  z-index: 1;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.bgimg > *,
.bgimg2 > * {
  position: relative;
  z-index: 2;
}

/* Invite card styling - Space Theme */
.invite-card {
  max-width: 500px;
  margin: 32px auto;
  border: 3px solid rgba(147, 197, 253, 0.5);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.5), 0 0 60px rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  display: block;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.5), 0 0 60px rgba(124, 58, 237, 0.3);
  }
  50% {
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.7), 0 0 80px rgba(124, 58, 237, 0.5);
  }
}

/* Responsive utilities */
@media (max-width: 600px) {
  .zv-hide-small {
    display: none !important;
  }

  .zv-modal-content {
    width: 95%;
    margin: 0 auto;
  }

  .zv-jumbo {
    font-size: 32px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  .zv-half {
    width: 100%;
    float: none;
    padding: 8px 0;
  }

  /* Countdown responsive styles */
  #countdown {
    gap: 12px !important;
    margin: 20px 0 !important;
  }

  #countdown > div {
    min-width: 70px !important;
    padding: 10px 8px !important;
  }

  #countdown > div > div:first-child {
    font-size: 28px !important;
  }

  #countdown > div > div:last-child {
    font-size: 12px !important;
  }

  /* Background images mobile fixes */
  .bgimg, .bgimg2 {
    background-attachment: scroll;
    background-position: center center;
    min-height: 400px !important;
  }

  .bgimg2 {
    background-size: cover;
    background-position: center center;
  }

  /* Form button spacing */
  .zv-row > .zv-half {
    margin-bottom: 12px;
  }

  .zv-row > .zv-half:last-child {
    margin-bottom: 0;
  }

  /* Modal padding adjustment */
  .zv-modal {
    padding-top: 20px;
  }

  .zv-modal .zv-container {
    padding: 16px;
  }

  /* Invite card mobile */
  .invite-card {
    max-width: 100%;
    margin: 20px auto;
  }

  /* Header text background mobile */
  header .zv-display-middle {
    padding: 20px 24px;
  }
}
