/* ============================================
   UltraTyres Coming Soon Page - Responsive Styles
   Mobile-first approach with Drupal-style tire pattern background
   ============================================ */

/* ============================================
   BASE & LAYOUT
   ============================================ */

.coming-soon-page {
  position: relative;
  min-height: 100vh;
  background-color: #e6e6e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-x: hidden;
}

/* ============================================
   TIRE PATTERN BACKGROUND (Drupal Approach - JS Generated)
   ============================================ */

.tire-pattern-background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 100%;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Individual tire column styles (created by JavaScript) */
.tire-column {
  flex-shrink: 0;
  min-height: 100vh;
}

/* Keyframe animations for rolling tire effect */
@keyframes tireRollForward {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 1338px;
  }
}

@keyframes tireRollBackward {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 -1338px;
  }
}

/* Tire column animation classes - alternating directions */
.tire-column-forward {
  animation: tireRollForward 160s linear infinite;
}

.tire-column-backward {
  animation: tireRollBackward 160s linear infinite;
}

/* ============================================
   CONTENT CARD (Unified - includes newsletter)
   ============================================ */

.content-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  margin: auto;
}

/* Background Fill */
.card-bg-fill {
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background-color: #f1f1f1;
  z-index: 0;
}

/* Left Border with screws and vertical line */
.card-border-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 100%;
  background-image: url('images/border.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 2;
}

/* Right Border with screws and vertical line */
.card-border-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 100%;
  background-image: url('images/border.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 2;
}

/* Top horizontal border */
.card-border-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #9e9e9e;
  z-index: 1;
}

/* Bottom horizontal border */
.card-border-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #9e9e9e;
  z-index: 1;
}

/* Middle separator line */
.card-separator-line {
  position: absolute;
  top: 46%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #9e9e9e;
  transform: translateY(-50%);
  z-index: 1;
}


@media (min-width: 768px) {
  .card-separator-line {
    top: 48%;
  }
}

.card-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.card-top-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-separator {
  width: 100%;
  height: 1px;
  background-color: rgba(158, 158, 158, 0.3);
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .content-card {
    max-width: 600px;
    margin: auto;
  }

  .card-content {
    padding: 2.5rem 3rem;
  }

  .card-top-section {
    margin-bottom: 2rem;
  }

  .card-separator {
    margin: 2rem 0;
  }
}

@media (min-width: 1024px) {
  .content-card {
    max-width: 692px;
    margin: auto;
  }

  .card-content {
    padding: 3rem 3.5rem 2rem;
  }

  .card-top-section {
    margin-bottom: 2.5rem;
  }

  .card-separator {
    margin: 2.5rem 0 2rem;
  }
}

/* ============================================
   LOGO
   ============================================ */

.logo {
  margin: 0;
  text-align: center;
  line-height: 1;
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .logo-image {
    height: 56px;
  }
}

@media (min-width: 1024px) {
  .logo-image {
    height: 76px;
  }
}

/* ============================================
   DESCRIPTION
   ============================================ */

.description {
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #000000;
}

.description p, .partnership-description{
  margin: 0 20px 0 20px;
}

.highlight-orange {
  color: #ff7714;
  font-weight: 700;
}

.highlight-black {
  color: #000000;
  font-weight: 700;
}

@media (min-width: 768px) {
  .description {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (min-width: 1024px) {
  .description {
    font-size: 1rem;
    line-height: 1.75;
  }
}

/* ============================================
   PARTNERSHIP SECTION
   ============================================ */

.partnership-section {
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-top: 0.75rem;
}

.partnership-title {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #000000;
  margin: 0 0 0.25rem 0;
  font-weight: 400;
}

.partnership-logo {
  height: 18px;
  width: auto;
  vertical-align: middle;
  display: inline-block;
  margin-left: 0.15rem;
}

.partnership-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #000000;
  font-weight: 400;
}

@media (min-width: 768px) {
  .partnership-section {
    margin-top: 1rem;
  }

  .partnership-title {
    font-size: 1rem;
    line-height: 1.6;
  }

  .partnership-logo {
    height: 20px;
  }

  .partnership-description {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (min-width: 1024px) {
  .partnership-section {
    margin-top: 1rem;
  }

  .partnership-title {
    font-size: 1rem;
    line-height: 1.75;
  }

  .partnership-logo {
    height: 22px;
  }

  .partnership-description {
    font-size: 1rem;
    line-height: 1.75;
  }
}

/* ============================================
   CONTACT INFO
   ============================================ */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .contact-info {
    flex-direction: column;
    margin-bottom: 10px;
    /*gap: .5rem;*/
  }
}

@media (min-width: 1024px) {
    .contact-info {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.contact-link {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #ff7714;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.75;
}

.contact-link:hover {
  color: #e66600;
  text-decoration: underline;
}

.contact-link:focus {
  outline: 2px solid #ff7714;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================
   NEWSLETTER SECTION (Inside Card)
   ============================================ */

.newsletter-section {
  width: 100%;
  padding-top: 2rem;
  position: relative;
}

@media (min-width: 1024px) {
  .newsletter-section {
    padding-top: 2.25rem;
  }
}

.newsletter-prompt {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #000000;
  text-align: center;
  margin: 0;
  padding: 0 25px;
  line-height: 1.75;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .newsletter-prompt {
    padding: 0;
  }
}

/* ============================================
   FORM STYLES
   ============================================ */

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  width: 100%;
  max-width: 367px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.email-input {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #ff7714;
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  outline: none;
  transition: color 0.3s ease;
  width: 100%;
  text-align: center;
}

.email-input::placeholder {
  color: #ff7714;
  opacity: 1;
}

.email-input:focus {
  color: #e66600;
}

.email-input:invalid:not(:placeholder-shown) {
  color: #ff1c14;
}

.email-input[aria-invalid="true"] {
  color: #ff1c14;
}

/* Animated underline for email input */
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 1px;
  background-color: #ff7714;
  transition: width 0.3s ease-out;
  pointer-events: none;
}

@media (min-width: 768px) {
  .form-group::after {
    width: 150px;
  }
}

.form-group:focus-within::after {
  width: 80%;
}

@media (min-width: 768px) {
  .form-group:focus-within::after {
    width: 100%;
  }
}

/* Email error message (below input and underline) */
.email-error {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #ff1c14;
  line-height: 1.5;
  text-align: center;
  display: none;
  min-height: 0;
  margin: 0 20px 0 20px;
}

.email-error.show {
  display: block;
}

/* Checkbox error message (above checkboxes) */
.checkbox-error {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #ff1c14;
  text-align: center;
  display: none;
}

.checkbox-error.show {
  display: block;
}

/* ============================================
   CHECKBOX STYLES
   ============================================ */

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: auto;
  align-items: flex-start;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.checkbox-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background-color: #f8f8f8;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checkbox-item input[type="checkbox"]:hover {
  border-color: #b0b0b0;
  background-color: #f0f0f0;
}

.checkbox-item input[type="checkbox"]:focus {
  outline: 2px solid #ff7714;
  outline-offset: 2px;
}

.checkbox-item input[type="checkbox"]:checked {
  background-color: #f8f8f8;
  border-color: #ff7714;
}

.checkbox-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  width: 11px;
  height: 11px;
  background-color: #ff7714;
}

.checkbox-item input[type="checkbox"].error {
  border-color: #ff1c14;
  background-color: #fff5f5;
}

.checkbox-item label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #737373;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.checkbox-item label:hover {
  color: #595959;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.submit-button {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: #ff7714;
  background-color: transparent;
  background-image: url('images/button-background.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  padding: 0.75rem 2.5rem;
  cursor: pointer;
  transition: transform 0.3s ease, background-image 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  min-width: 196px;
  width: 196px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.submit-button:hover {
  background-image: url('images/button-background-hover.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  color: #000000;
  transform: scale(1.05);
}

.submit-button:active {
  background-color: transparent;
  color: #ff7714;
  transform: scale(1.05);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   SUCCESS MESSAGE STYLES (Toast)
   ============================================ */

.success-message {
  display: none;
  background-color: #f8f8f8;
  border: 1px solid #ff7714;
  height: 48px;
  padding: 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: auto;
  max-width: 81%;
  box-sizing: border-box;
}

.success-message.show {
  display: flex;
}

.success-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.success-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #111928;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* ============================================
   PRIVACY NOTICE (Below Submit Button)
   ============================================ */

.privacy-notice {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #737373;
  text-align: center;
  margin: 1rem 0 0 0;
  padding: 0 1rem;
}

.privacy-link {
  color: #ff7714;
  text-decoration: none;
  transition: color 0.2s ease;
}

.privacy-link:hover {
  color: #e66600;
  text-decoration: underline;
}

.privacy-link:focus {
  outline: 2px solid #ff7714;
  outline-offset: 2px;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .privacy-notice {
    font-size: 0.8125rem;
  }
}

/* ============================================
   PAGE FOOTER
   ============================================ */

.page-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #737373;
  line-height: 1.6;
}

.footer-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #737373;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ff7714;
  text-decoration: underline;
}

.footer-link:focus {
  outline: 2px solid #ff7714;
  outline-offset: 2px;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .page-footer {
    font-size: 0.9375rem;
  }

  .footer-link {
    font-size: 0.9375rem;
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (min-width: 1280px) {
  .coming-soon-page {
    padding: 0;
  }
}
