* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  background: #f7f7f7;
  color: #333;
}

html,
body {
  height: 100vh;
}

/* Header Styles */
header#site-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  color: #000;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
header#site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
header#site-header .logo {
  font-size: 16px;
}
.logo a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
header#site-header nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}
header#site-header nav ul li a {
  color: #000;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
header#site-header nav ul li a:hover {
  color: #005792;
}

/* Footer Styles */
footer#site-footer {
  background: #333;
  color: #ccc;
  padding: 15px 20px;
  text-align: center;
  font-size: 14px;
}
footer#site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
}
footer#site-footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s;
}
footer#site-footer a:hover {
  color: #fff;
}

/* Main Content Styles */
.center-span {
  text-align: center;
  font-size: 12px;
  color: red;
  margin: 10px 0;
}
main#main-content {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}
h1.page-title {
  text-align: center;
  margin: 20px 0;
  font-size: 32px;
  color: #005792;
}

.cta-buttons {
  display: flex;
  gap: 10px;
  /* margin-top: 10px; */
}

.cta-button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  background-color: white;
  /* border: none; */
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/*CTA Buttons*/
.cta-button:hover {
  background-color: #e6eef4;
}
.cta-button:active {
  background-color: #e6eef4;
}

.cta-button-2 {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background-color: #1a1a1a;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.cta-button-2:hover {
  background-color: #003050;
  color: white;
  /* border: none; */
}
.cta-button-2:active {
  background-color: #003050;
}

/* Design Selection */
#design-selection {
  margin-bottom: 20px;
  text-align: center;
}
#design-selection label {
  margin-right: 10px;
  /* font-weight: bold; */
}

/* Plates Display Container */
#plates-display {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}
.plate-container {
  position: relative;
  background: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  margin: 10px;
}
.size-large {
  width: 520px;
  height: 110px;
}
.size-small {
  width: 340px;
  height: 200px;
}

/* Plate Info (Flag, Expiration & AO) */
.plate-info {
  position: absolute;
  top: 5px;
  left: 5px;
  text-align: center;
  line-height: 1.2;
}
.plate-info img {
  width: 40px;
  height: 30px;
  object-fit: contain;
  display: block;
}
.expiration-container {
  margin-top: 3px;
}
.expiration {
  font-weight: bold;
  font-size: 15px;
  display: block;
}
.ao {
  font-size: 20px;
  font-weight: bold;
  margin-top: 5px;
  display: block;
}

/* Plate Number Display */
.plate-number {
  font-family: "arimoregular", sans-serif;
  color: #000;
  font-weight: bold;
  text-align: center;
  letter-spacing: 5px;
}
.size-large .plate-number {
  font-size: 3em;
}
.size-small .plate-number {
  font-size: 3em;
}

/* AO Holograms */
.hologram {
  position: absolute;
  font-size: 0.6em;
  color: rgba(0, 0, 0, 0.1);
  font-weight: bold;
  user-select: none;
}
.holo1 {
  top: 20%;
  left: 10%;
}
.holo2 {
  top: 50%;
  left: 70%;
}
.holo3 {
  top: 80%;
  left: 30%;
}
.holo4 {
  top: 35%;
  left: 40%;
}
.holo5 {
  top: 60%;
  left: 15%;
}

/* Input Containers – New UI/UX Design */
#inputs-container {
  max-width: 800px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.input-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 20px;
  width: 100%;
  max-width: 500px;
}
.input-container h2 {
  text-align: center;
  margin-bottom: 15px;
  color: #005792;
  font-size: 24px;
}
.input-group {
  margin-bottom: 15px;
  text-align: center; /* Centering the ExpirationLabel */
}
.input-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}
.input-group input {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}
.input-group input:focus {
  border-color: #007bff;
  outline: none;
}
.input-group select {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
}
.button-group {
  text-align: center;
  margin-top: 20px;
}
.button-group button {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
}

/* Plate Parts Inputs */
.plate-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.plate-inputs input {
  flex: 1;
  text-align: center;
  font-size: 1.5em;
  padding: 10px;
}

/* Expiration Inline Inputs */
.expiration-inputs {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}
.expiration-inputs input {
  width: 50px;
  text-align: center;
  font-size: 1em;
}

/* Export Button */
#export-btn {
  padding: 10px 20px;
  font-size: 1em;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  display: block;
  margin-top: 20px;
}
#export-btn:hover {
  background: #005fbb;
}
#export-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/*Process btn*/
/* Style for the new "Process" button */
#process-btn {
  padding: 15px 30px;
  font-size: 1.2em;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#process-btn:hover {
  background: #005fbb;
  transform: translateY(-2px);
}

#process-btn:active {
  background: #004070;
  transform: translateY(0);
}

.processing-icon {
  font-size: 1.2em;
}

/* PDF Export Container Styles (for cloning) */
.export-header,
.export-footer {
  text-align: center;
  font-family: Arial, sans-serif;
  margin: 10px 0;
}
.export-header {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 40px;
}
.export-user-details {
  font-size: 18px;
  text-align: left;
  margin: 0 20px 40px 20px;
}
.export-footer {
  font-size: 14px;
  font-weight: normal;
  margin-top: 40px;
}
footer {
  text-align: center;
  margin-top: 20px;
}
footer a {
  margin: 0 10px;
  text-decoration: none;
  /* font-size: 1.5rem; */
}
.contact-footer {
  margin-bottom: 16px;
}
footer p {
  margin-bottom: 16px;
}

/* Responsive Styling */
@media only screen and (max-width: 600px) {
  .main-nav {
    padding-top: 10px;
  }

  main#main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
  }

  .plates-display {
    html {
      font-size: 80%;
    }
  }

  .plate-info img {
    width: 30px;
    height: 20px;
  }
  .expiration {
    font-size: 12px;
  }
  .ao {
    font-size: 16px;
  }
}

/*export popup*/
/* Popup Styles */
#export-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  text-align: center;
}
#export-popup h2 {
  color: #005792;
  margin-bottom: 10px;
}
#export-popup img {
  max-width: 300px;
  margin-bottom: 10px;
}
#export-popup button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  /* margin-top: 20px; */
  margin: 5px auto;
}
#export-popup button:hover {
  background-color: #005fbb;
}
#export-popup .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 1.2em;
}

/*check for the corrections on plate-container*/
@media only screen and (max-width: 500px) {
  .size-large .plate-number {
    font-size: 2em;
    margin-left: 2%;
    flex-grow: 1;
  }

  .size-large {
    min-width: 100%;
  }
}

@media only screen and (max-width: 375px) {
  .size-large .plate-number {
    font-size: 2.3em;
    text-align: right;
    margin-right: 1%;
  }

  .size-large {
    min-width: 100%;
    font-size: 1em;
  }

  .plate-inputs input {
    font-size: 1em;
    padding: 10px;
  }

  .expiration-inputs input {
    font-size: 0.8em;
  }
}

@media only screen and (max-width: 360px) {
  .size-large {
    font-size: 0.8em;
  }
}
