@font-face {
  font-family: "Oracle";
  src: url("ABCOracle-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-red: #e3003f;
  --primary-red-hover: #1a2a53;
  --dark-gray: #1a2a53;
  --light-gray: #f5f5f5;
  --medium-gray: #1a2a53;
  --white: #ffffff;
  --overlay-bg: rgba(0, 0, 0, 0.5);
}

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

body {
  font-family:
    "Oracle",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    sans-serif;
  background-color: var(--light-gray);
  color: var(--dark-gray);
  line-height: 1.6;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.marketing-section {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.marketing-section h2 {
  color: var(--dark-gray);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.marketing-section p {
  color: var(--medium-gray);
}

.card-section {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-section h1 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

.card-section .intro-text {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-gray);
}

.input-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-red);
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--primary-red);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
}

.btn-primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-bg);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--dark-gray);
}

.cvc-input-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cvc-input {
  width: 60px;
  height: 70px;
  font-size: 1.5rem;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.cvc-input:focus {
  outline: none;
  border-color: var(--primary-red);
}

.btn-secondary {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  color: var(--medium-gray);
  background-color: var(--light-gray);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

/* Result Modal */
.result-content {
  text-align: left;
}

.result-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.result-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.result-item:last-of-type {
  border-bottom: none;
  margin-bottom: 1.5rem;
}

.result-item .label {
  font-size: 0.85rem;
  color: var(--medium-gray);
  margin-bottom: 0.25rem;
}

.result-item .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.result-item .value.highlight {
  color: var(--primary-red);
  font-size: 1.3rem;
}

.result-item .value.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

/* Loading Spinner */
.loading-spinner {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.loading-spinner.active {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-gray);
  border-top-color: var(--primary-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error State */
.error-message {
  color: var(--primary-red);
  text-align: center;
  padding: 1rem;
  display: none;
}

.error-message.active {
  display: block;
}

/* Input Error Message */
.input-error-message {
  color: #f44336;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

/* FAQ Section */
.faq-section {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
  font-size: 1.5rem;
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-gray);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary-red);
}

.faq-question span {
  flex: 1;
  padding-right: 1rem;
}

.faq-question i {
  font-size: 0.875rem;
  color: var(--primary-red);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--medium-gray);
  line-height: 1.6;
  margin: 0;
}

.faq-answer a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.footer {
  text-align: center;
  padding: 2rem;
  color: var(--medium-gray);
  font-size: 0.85rem;
}

.footer a {
  color: var(--primary-red);
  text-decoration: none;
}
