@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Libre+Caslon+Text:wght@400;700&display=swap');

:root {
  /* Colors */
  --azure-primary: #006591;
  --azure-primary-light: #89ceff;
  --azure-secondary: #2f6388;
  --azure-tertiary: #006973;
  --azure-tertiary-light: #67E8F9;
  --azure-surface: #f7f9fb;
  --azure-on-surface: #191c1e;
  --azure-outline: #6e7881;
  --azure-error: #ba1a1a;
  
  /* Typography */
  --azure-font-display: 'Libre Caslon Text', serif;
  --azure-font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --azure-spacing-base: 8px;
  --azure-spacing-sm: 12px;
  --azure-spacing-md: 24px;
  --azure-spacing-lg: 48px;
  --azure-spacing-xl: 80px;
  
  /* Radii */
  --azure-radius-sm: 0.25rem;
  --azure-radius-md: 0.75rem;
  --azure-radius-lg: 1rem;
  --azure-radius-xl: 1.5rem;
}

/* Base Wrapper */
.azure-pool-wrapper {
  font-family: var(--azure-font-body);
  color: var(--azure-on-surface);
  line-height: 1.6;
  box-sizing: border-box;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--azure-spacing-md);
  /* The overall container could just be transparent if the site has the background, 
     but let's add a subtle background for the form area to stand out */
}

.azure-pool-wrapper * {
  box-sizing: border-box;
}

/* Typography Classes */
.azure-title {
  font-family: var(--azure-font-display);
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  margin-bottom: var(--azure-spacing-sm);
  color: #1a1a1a;
}

.azure-subtitle {
  font-family: var(--azure-font-body);
  font-size: clamp(14px, 2.5vw, 16px);
  text-align: center;
  color: var(--azure-outline);
  margin-bottom: clamp(24px, 5vw, 48px);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.azure-step-badge {
  display: inline-block;
  background-color: #e0f2fe; /* Light cyan/blue */
  color: var(--azure-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 16px;
  border-radius: 9999px;
  margin-bottom: var(--azure-spacing-sm);
}

.azure-text-center {
  text-align: center;
}

/* Glassmorphism Container */
.azure-glass-container {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2rem; /* Soft, large radius */
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 48px);
  box-shadow: 0 20px 50px rgba(0, 101, 145, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bento Grid */
.azure-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--azure-spacing-md);
  margin-bottom: clamp(32px, 8vw, 80px);
}

@media (min-width: 600px) {
  .azure-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Service Card */
.azure-service-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--azure-radius-xl);
  padding: clamp(20px, 4vw, 32px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

.azure-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  transition: all 0.5s;
}

.azure-service-card:hover::before {
  left: 200%;
}

.azure-service-card:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0, 101, 145, 0.3);
  box-shadow: 0 12px 30px rgba(0, 101, 145, 0.08);
}

.azure-service-card.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--azure-primary);
  box-shadow: 0 0 0 2px var(--azure-primary), 0 12px 30px rgba(0, 101, 145, 0.12);
}

.azure-card-icon {
  width: 48px;
  height: 48px;
  background: #e0f2fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--azure-spacing-md);
  color: var(--azure-primary);
  transition: transform 0.3s ease;
}

.azure-service-card:hover .azure-card-icon {
  transform: scale(1.1);
}

.azure-card-icon svg {
  width: 24px;
  height: 24px;
}

.azure-card-title {
  font-family: var(--azure-font-display);
  font-size: clamp(20px, 3.5vw, 24px);
  color: var(--azure-primary);
  margin-bottom: var(--azure-spacing-sm);
  margin-top: 0;
}

.azure-card-desc {
  font-size: 14px;
  color: var(--azure-outline);
  line-height: 1.5;
  margin: 0;
}

/* Footer / Progress Area */
.azure-form-footer {
  display: flex;
  flex-direction: column;
  gap: var(--azure-spacing-md);
  margin-top: clamp(40px, 8vw, 80px);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: var(--azure-spacing-md);
}

@media (min-width: 640px) {
  .azure-form-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.azure-progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

@media (min-width: 640px) {
  .azure-progress-container {
    width: auto;
  }
}

.azure-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  color: var(--azure-on-surface);
}

@media (min-width: 640px) {
  .azure-progress-labels {
    justify-content: flex-start;
  }
}

.azure-progress-labels span {
  font-weight: 500;
}

.azure-progress-bar-bg {
  height: 6px;
  background: rgba(0,0,0,0.05);
  border-radius: 9999px;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 640px) {
  .azure-progress-bar-bg {
    width: 200px;
  }
}

.azure-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--azure-primary-light) 0%, var(--azure-primary) 100%);
  width: 33%; /* dynamic */
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 9999px;
}

/* Buttons Container */
.azure-footer-buttons {
  display: flex;
  width: 100%;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 639px) {
  .azure-footer-buttons {
    margin-top: 8px;
  }
  .azure-footer-buttons .azure-btn {
    flex: 1;
    padding: 14px 20px;
  }
}

@media (min-width: 640px) {
  .azure-footer-buttons {
    width: auto;
    display: inline-flex;
  }
}

/* Buttons */
.azure-btn {
  font-family: var(--azure-font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: var(--azure-radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.azure-btn-primary {
  background: linear-gradient(135deg, var(--azure-primary) 0%, var(--azure-secondary) 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 101, 145, 0.2);
}

.azure-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 101, 145, 0.35);
  transform: translateY(-2px);
}

.azure-btn-primary:active {
  transform: translateY(0);
}

.azure-btn-primary:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.azure-btn-secondary {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 101, 145, 0.2);
  color: var(--azure-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.azure-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--azure-primary);
  transform: translateY(-2px);
}

.azure-btn-secondary:active {
  transform: translateY(0);
}

/* Form Inputs */
.azure-input-group {
  margin-bottom: var(--azure-spacing-md);
  text-align: left;
}

.azure-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--azure-on-surface);
}

.azure-input {
  width: 100%;
  padding: 16px;
  border-radius: var(--azure-radius-lg);
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.5);
  font-family: var(--azure-font-body);
  font-size: 16px;
  transition: all 0.2s;
}

.azure-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--azure-primary);
  box-shadow: 0 0 0 4px rgba(0, 101, 145, 0.12);
}

select.azure-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006591' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 48px;
}

input[type="checkbox"] {
  accent-color: var(--azure-primary);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.azure-fade-in {
  animation: azureFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes azureFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.azure-hidden {
  display: none !important;
}

/* Pool Type Explanation Card */
.azure-explanation-card {
  margin-top: var(--azure-spacing-sm);
  background: rgba(0, 101, 145, 0.05);
  border-left: 4px solid var(--azure-primary);
  border-radius: var(--azure-radius-md);
  padding: 16px;
  font-size: 14px;
  color: var(--azure-outline);
  line-height: 1.55;
  transition: all 0.3s ease;
  animation: azureFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.azure-explanation-card-inner {
  display: flex;
  flex-direction: column;
}

.azure-explanation-title {
  font-weight: 600;
  color: var(--azure-primary);
  margin-bottom: 4px;
}

/* 3-Column Bento Grid for packages */
.azure-bento-grid.azure-grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .azure-bento-grid.azure-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}



