/* ==================
Global Styles
================== */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-size: 16px;
}

body {
  cursor: url(AIT_Images/AITBatCursor.png) 0 0, auto;
  background-color: #5d5d5d;
}

input,
label,
button,
iframe,
span,
a,
li {
  cursor: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  cursor: text;
}

.page-wrapper {
  min-height: 100dvh;
  max-width: 1024px;
  margin: 0 auto;
  background-color: #8a8a8a;
  background-image: linear-gradient(to bottom, transparent, #8a8a8a),
    url(AIT_Images/mist-texture.png);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%;
  border: 3px solid #2a623d;
  border-radius: 5px;
  box-sizing: border-box;
}

body > * {
  flex: 1 0 auto;
}

/* ==================
Typography
================== */
h1,
h3,
h4,
p {
  margin: 0.5em 0 0 0;
}

h3,
h4 {
  margin-bottom: 0.1em;
}

a {
  color: #0000ff;
  text-decoration: none;
}

a:hover,
a:active {
  color: #2a623d;
}

p.alt {
  margin: 0.1em 0 0.5em;
}

.font1 {
  font: 16px Verdana, sans-serif;
  text-align: justify;
  text-justify: inter-word;
}
.font2 {
  font: 18px Verdana, sans-serif;
}
.font3 {
  font: 18px Georgia, serif;
  vertical-align: middle;
}
.font4 {
  font-family: "Lucida Handwriting", cursive;
}

.outline {
  text-shadow: 2px 2px 4px #000000cc;
}

/* ==================
Header
================== */
#header {
  width: 100%;
  height: 200px;
  background: url(AIT_Images/AIT_Banner_Gif.gif) no-repeat center top;
  background-size: 100% 100%; /* stretch to fill exactly */
  border-radius: 5px 5px 0 0;
  text-align: center;
  line-height: 1.2;
  color: #fff;
  font: 150% "Lucida Bright", Georgia, serif;
  font-variant: small-caps;
  text-shadow: -3px -2px #0000ff;
  margin-top: 0;
  margin-bottom: 1.5em;
  padding: 1em 0;
}

#header h1 {
  font-size: 1.5em;
}

/* ==================
Tabs
================== */
.tabGroup {
  font: 14pt Arial, Verdana, sans-serif;
  width: 100%;
  max-width: 950px;
  margin: auto;
}

.tabGroup > input[type="radio"] {
  position: absolute;
  left: -100px;
  top: -100px;
}

.tabGroup > input[type="radio"] + label {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #2a623d;
  border-radius: 5px 5px 0 0;
  border-bottom: 0;
  background-color: #4ccb78;
  font-size: 0.9em;
}

.tabGroup > input[type="radio"]:checked + label {
  background-color: #4a8f4d;
  font-weight: bold;
  border-bottom: 1px solid #4a8f4d;
  margin-bottom: -1px;
}

.tabGroup > div {
  display: none;
  padding: 10px;
  border: 1px solid #1f222b;
  border-radius: 0 5px 5px 5px;
  background-color: #bfdec0;
  overflow: auto;
  box-shadow: 0 0 20px #8f9294;
  margin-bottom: 1em;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.tab1:checked ~ .tab1,
.tab2:checked ~ .tab2,
.tab3:checked ~ .tab3,
.tab4:checked ~ .tab4,
.tab5:checked ~ .tab5,
.tab6:checked ~ .tab6,
.tab7:checked ~ .tab7,
.tab8:checked ~ .tab8 {
  display: block;
  opacity: 1;
}

/* ==================
Columns
================== */
.tab-columns-2,
.tab-columns-3 {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.tab-columns-2 .column {
  flex: 1;
  min-width: 280px;
}
.tab-columns-3 .column {
  flex: 1;
  min-width: 220px;
}

@media (max-width: 1024px) {
  .tab-columns-3 {
    flex-wrap: wrap;
  }
  .tab-columns-3 .column {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .tab-columns-2 {
    flex-direction: column;
  }
  #header h1 {
    font-size: 1.2em;
  }
  .tabGroup > input[type="radio"] + label {
    font-size: 0.85em;
    padding: 4px 8px;
  }
  .paypal-form {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==================
Lists
================== */
.nobullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nobullets li {
  margin: 0;
}

.bullet-arrows {
  list-style: none;
  padding-left: 1.2em;
  margin: 0;
}
.bullet-arrows li::before {
  content: "\27A3";
  margin-right: 0.5em;
  color: black;
}

/* ==================
Social Links
================== */
.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}
.social-links li {
  margin-bottom: 0;
}

.social-links a {
  display: flex;
  align-items: center;
  padding: 0.25em 0.5em;
  color: #000;
  border-radius: 0.25em;
  transition: color 0.2s, background-color 0.2s;
  line-height: 1.5;
  max-width: 100%;
  word-break: keep-all;
}

.social-links a img {
  width: 1.4em;
  height: 1.4em;
  margin-right: 0.5em;
  transition: width 0.2s, height 0.2s;
}

.social-links a:hover {
  color: #073d25;
  background-color: rgba(7, 61, 37, 0.1);
}

.social-links a:hover img {
  width: 1.6em;
  height: 1.6em;
}

/* ==================
Images
================== */
.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================
Animations
================== */
@keyframes fadeFromBlack {
  0% {
    opacity: 0;
    filter: brightness(0);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

.fade-in-black {
  animation: fadeFromBlack 2s ease forwards;
}

/* ==================
PayPal
================== */
.paypal-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 0;
  gap: 0.5em;
}
.paypal-btn {
  border: none;
  background: none;
  padding: 0;
  transition: transform 0.15s ease;
}
.paypal-btn img {
  display: block;
  max-width: 90px;
  height: auto;
}
.paypal-btn:hover {
  transform: scale(1.05);
}
.paypal-btn:active {
  transform: scale(0.98);
}
.paypal-text {
  font-size: 0.95rem;
  color: #333;
  white-space: nowrap;
}

#amountInput::-webkit-outer-spin-button,
#amountInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#amountInput {
  appearance: textfield; /* Standard property */
  -moz-appearance: textfield; /* Firefox-specific */
  -webkit-appearance: textfield; /* Safari/Chrome (older versions) */
}

/* ==================
Map
================== */
.map-container {
  position: relative;
  width: 100%;
  margin-top: 10px;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==================
Modal Base Styles
================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.85);
}

/* Prevent background scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Close button styling */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
}

/* ==================
Image Modal Styles
================== */
.modal-content {
  display: block;
  margin: 10% auto;
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 8px;
}

/* Optional image animation */
.fade-in-black {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==================
PDF Modal Styles
================== */
.pdf-wrapper {
  margin: 0 auto;
  max-width: 1024px;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#modalPdf {
  width: 100%;
  height: 100vh;
  border: none;
  display: block;
}

/* ==================
Mobile Responsiveness
================== */
@media (max-width: 600px) {
  .pdf-wrapper {
    max-width: 100vw;
    padding: 0;
  }

  #modalPdf {
    width: 100vw;
    height: 100vh;
  }

  #closePdf,
  #imageModal .close {
    top: 10px;
    right: 15px;
    font-size: 28px;
  }

  .modal-content {
    max-width: 95vw;
    max-height: 75vh;
  }
}

/* ==================
Email Copy Message
================== */
.copy-message {
  position: absolute;
  display: none;
  background-color: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
}

.animate-slide {
  animation: slideFade 1s ease-out;
}

@keyframes slideFade {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  30% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-10px);
    opacity: 0;
  }
}
