/* EWO Address Check Form v4 - Based on Wisper Design */

/* CSS Variables */
:root {
  --ewo-primary: #203F9A;
  --ewo-secondary: #58DCFC;
  --ewo-alert: #8B181A;
  --ewo-success: #4CAF50;
  --ewo-background: #F8F9FA;
  --ewo-white: #FFFFFF;
  --ewo-text-dark: #333333;
  --ewo-text-light: #666666;
  --ewo-border-light: #E0E0E0;
  --ewo-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --ewo-radius: 8px;
  --ewo-transition: all 0.3s ease;
}

/* Main Container - Full width */
.ewo-multistep-wrapper {
  width: 100%;
  padding: 32px 0;
  /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;*/
  background: var(--ewo-white);
  /* min-height: 683px; */
}

/* Inner container for content width control */
.ewo-multistep-inner {
  margin: 0 auto;
  padding: 0;
  position: relative;
}

/* Address Check content takes full width */
#ewo-multistep-content {
  width: 100%;
}

/* Step Content */
.ewo-step-content {
  background: var(--ewo-primary);
  color: var(--ewo-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px 72px;
  /*margin-bottom: 30px;*/
  /* min-height: 500px; */
  margin-left: auto;
  margin-right: auto;
  position: relative;
  box-shadow: none;
  text-align: center;
}

/* Step 1 specific text */
.ewo-step-content.step-1 p {
  line-height: 1.5;
  margin-top: 20px;
}

/* Step 1 disclaimer text */
.ewo-step-content.step-1 .ewo-disclaimer {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.ewo-step-header {
  text-align: center;
}

.ewo-step-title {
  font-size: 3.6em;
  color: white;
}

.ewo-step-subtitle {
  font-size: 16px;
  color: var(--ewo-text-light);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  white-space: pre-line;
}

/* Step 1 - Check Address */
.ewo-address-container {
  max-width: 740px;
  margin: 0 auto;
}

.ewo-address-input-container_outer_wrapper {
  display: flex;
  justify-content: center;
}

/* Input group wrapper for autocomplete positioning */
.ewo-address-input-container-wrapper {
  position: relative;
  width: 100%;
  max-width: 740px;
  margin: 32px auto 0;
}

/* Input group - Exact copy from ewo-hero-input-group */
.ewo-address-input-container {
  /*display: flex;*/
  /*align-items: center;*/
  background: #fff;
  /*border-radius: 32px;*/
  border-bottom-left-radius: 32px;
  border-top-left-radius: 32px;
  box-shadow: 0 2px 12px rgba(30,40,90,0.10);
  gap: 0.5rem;
  overflow: hidden;
  width: 100%;
}

/* Input - Exact copy from .ewo-input.ewo-autocomplete */
.ewo-address-input {
  border: none !important;
  outline: none;
  font-size: 1.1em;
  padding: 0.9em 1.2em;
  /*border-radius: 32px;*/
  border-bottom-left-radius: 32px;
  border-top-left-radius: 32px;
  flex: 1 1 auto;
  color: #203F9A;
  background: transparent;
  font-family: inherit;
}

.ewo-address-input::placeholder {
  color: #999;
  opacity: 1;
}

.ewo-address-input:focus {
  outline: none;
  box-shadow: none;
}

/* Button - Exact copy from .ewo-btn-primary */
.ewo-check-availability-btn {
  background: var(--ewo-secondary) !important;
  color: var(--ewo-primary) !important;
  border: none !important;
  /*border-radius: 32px;*/
  border-bottom-right-radius: 32px;
  border-top-right-radius: 32px;
  padding: 0.9em 2em;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(30,40,90,0.08);
  white-space: nowrap;
  /*flex-shrink: 0;*/
  margin-left: 5px;
}

/* Autocomplete Styles */
.ewo-autocomplete-wrapper {
  position: relative;
  flex: 1 1 auto;
}

.ewo-autocomplete-loading {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.ewo-autocomplete-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--ewo-primary);
  border-radius: 50%;
  animation: ewo-spin 1s linear infinite;
}

@keyframes ewo-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ewo-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--ewo-primary);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 5px;
}

.ewo-autocomplete-item {
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  color: var(--ewo-primary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.2s ease;
  min-height: 50px;
  display: flex;
  align-items: center;
}

.ewo-autocomplete-item:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.ewo-autocomplete-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.ewo-autocomplete-item:hover {
  background-color: var(--ewo-background);
  color: var(--ewo-primary);
  transform: translateX(4px);
}

.ewo-autocomplete-item:active {
  background-color: var(--ewo-secondary);
  color: var(--ewo-primary);
}

/* Content width utilities */
.ewo-content-width {
  max-width: 600px;
  margin: 0 auto;
}

.ewo-content-full {
  width: 100%;
  max-width: none;
}

.ewo-check-availability-btn:hover {
  background: var(--ewo-secondary) !important;
  box-shadow: 0 4px 12px rgba(88, 220, 252, 0.3);
}

.ewo-check-availability-btn:disabled {
  background: var(--ewo-border-light);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Loading */
.ewo-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--ewo-radius);
  z-index: 1000;
}

/* Step content loading state */
.ewo-step-content.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* API Loading overlay for step 1 */
.ewo-api-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(32, 63, 154, 0.8);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--ewo-radius);
  z-index: 1001;
  color: white;
}

.ewo-api-loading-overlay.show {
  display: flex;
}

.ewo-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--ewo-border-light);
  border-top: 4px solid var(--ewo-secondary);
  border-radius: 50%;
  animation: ewo-spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes ewo-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error Messages */
.ewo-error-message {
  background: var(--ewo-alert);
  color: var(--ewo-white);
  padding: 15px;
  border-radius: var(--ewo-radius);
  margin-bottom: 20px;
  text-align: center;
}
.ewo-error-message p {
  color: var(--ewo-white) !important;
}

/* Maybe Coverage Message (Yellow/Low Confidence) */
.ewo-maybe-coverage-message {
  background: var(--ewo-alert);
  color: var(--ewo-white);
  padding: 40px;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 900px;
  text-align: center;
}

.ewo-maybe-coverage-message h2 {
  color: var(--ewo-white);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.ewo-maybe-coverage-message p {
  color: var(--ewo-white) !important;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.ewo-request-callback-btn {
  background: var(--ewo-secondary);
  color: var(--ewo-primary);
  border: none;
  padding: 15px 50px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--ewo-transition);
  text-transform: none;
}

.ewo-request-callback-btn:hover {
  background: #7de5ff;
  color: var(--ewo-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 220, 252, 0.4);
}

.ewo-request-callback-btn:active {
  transform: translateY(0);
}

.ewo-success-message {
  background: var(--ewo-success);
  color: var(--ewo-white);
  padding: 15px;
  border-radius: var(--ewo-radius);
  margin-bottom: 20px;
  text-align: center;
}

@media (max-width: 1000px) {
  .ewo-step-title {
    font-size: calc(20px + 4vw);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .ewo-multistep-wrapper {
    padding: 15px 0;
  }

  .ewo-step-content {
    padding: 32px 20px;
  }
  /* Back button repositioning on mobile */
  .ewo-nav-btn.back {
    position: static;
    transform: none;
  }

  .ewo-navigation-inner {
    flex-direction: column;
    gap: 15px;
  }

  .ewo-progress-steps {
    flex-wrap: nowrap;
    gap: 5px;
    padding: 0 10px;
  }

  .ewo-progress-step {
    min-width: 60px;
  }

  .ewo-progress-step .ewo-progress-label {
    font-size: 10px;
  }

  .ewo-progress-step::after {
    width: 5px;
  }

  .ewo-form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .ewo-plans-container {
    flex-direction: column;
    align-items: center;
  }

  .ewo-addons-container {
    grid-template-columns: 1fr;
  }

  .ewo-installation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ewo-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .ewo-nav-btn {
    width: 100%;
  }
}

@media (max-width: 650px) {

  .ewo-address-input-container_outer_wrapper{
    flex-direction: column;
  }

  .ewo-address-input-container{
    border-radius: 32px;
  }

  .ewo-address-input {
    width: 100%;
    border-radius: 32px;
    font-size: 16px;
  }

  .ewo-check-availability-btn {
    margin-left: 0;
    margin-top: 10px;
    border-radius: 32px;
  }

}

/* ========== V2 PLANS SLIDER STYLES ========== */
/* Slider wrapper */
.ewo-slider-wrapper {
  display: block;
  max-width: 1200px;
  /*margin: 0 auto;*/
  /*padding: 3rem 0 2rem 0;*/
  position: relative;
  padding-top: 15px;
}

/* Scroll slider container */
.ewo-scroll-slider-container {
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  border-radius: 16px;
}

.ewo-internet-plan-slider-controls{
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Scroll slider track */
.ewo-scroll-slider-track {
  display: flex;
  gap: 1rem;
  /*overflow-x: clip;*/
  /*overflow-y: visible;*/
  overflow-x: auto;
  /*overflow-y: visible;*/
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2rem 0 4rem 0;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
}

/* Hide scrollbars */
.ewo-scroll-slider-track::-webkit-scrollbar {
  display: none;
}

.ewo-scroll-slider-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Scroll buttons */
.ewo-scroll-btn {
  /*position: absolute;*/
  background: #203f9a;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  /*display: flex;*/
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(32, 63, 154, 0.25);
  z-index: 100;
  margin: 5px;
  /*bottom: 72px;*/
}

/* Hide scroll buttons by default, show only when slider is active */

.ewo-scroll-btn:hover {
  background: #00bcd4;
  transform: scale(1.05);
}

.ewo-scroll-btn:disabled {
  background: #e0e0e0;
  cursor: not-allowed;
  transform: none;
  opacity: 0.5;
}
