/* Base styles for both forms */
.container {
  background-color: #fff;
  max-width: 500px;
  margin: 2rem auto;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Title styling */
.title {
  display: none;
}

/* Form styling */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Form field styling */
.form-field {
  display: flex;
  flex-direction: column;
}
.form-field .form-label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}
.form-field .form-input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.form-field .form-input:focus {
  outline: none;
  border-color: #0055D4;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.form-field.field-invalid .form-input {
  border-color: #e74c3c;
}
.form-field.field-invalid .expiration-fields {
  border-color: #e74c3c;
}

/* Expiration fields styling */
.expiration-fields {
  display: flex;
  width: 100%;
  align-items: stretch;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}
.expiration-fields input.form-input-exp {
  flex: 1;
  min-width: 0;
  text-align: center;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
}
.expiration-fields .expiration-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  font-size: 1.2rem;
  color: #333;
  background-color: #fff;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}
.expiration-fields:focus-within {
  border-color: #0055D4;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Submit button styling */
.form-button {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  background-color: #0055D4;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #000;
}
.divider:not(:empty)::before {
  margin-right: 0.5em;
}
.divider:not(:empty)::after {
  margin-left: 0.5em;
}

.express-option-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.google-pay-container {
  height: 44px;
}

/* --apple-pay-button-padding also increses the dimensions of the button */
apple-pay-button {
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 45px;
  --apple-pay-button-border-radius: 4px;
  --apple-pay-button-padding: 0;
}

.form-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.form-button:hover:not(:disabled) {
  background-color: #0046B5;
}

/* Error messages styling */
.form-errors {
  margin-top: 1rem;
}
.form-errors .error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Styling for the tabs in the PAN tokenization form with PRN (statement reference) */
.pan-tokenization-tabs {
  display: flex;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ccc;
}

.pan-tokenization-tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  background-color: #f2f2f2;
  color: #444;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  outline: none;

  &:focus {
    outline: 2px solid #999;
  }

  &:not(:last-child) {
    border-right: 1px solid #ccc;
  }

  &.active {
    background-color: #ffffff;
    color: #000;
    font-weight: 600;
  }

  &:hover {
    background-color: #e6e6e6;
  }
}
