html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.container, #page-content {
  flex: 1 0 auto;
}
.site-footer {
  flex-shrink: 0;
}
body {
  background: linear-gradient(120deg, #e0e7ff 0%, #f8fafc 100%);
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

#container, .container, body > div, form {
  max-width: 700px;
  width: 98vw;
  min-width: 350px;
  margin: 2em auto;
  box-sizing: border-box;
  padding: 0 2em;
}
.property-details, .price-estimation, form {
  max-width: 700px;
}
.property-details table {
  width: 100%;
  table-layout: auto;
}
.price-estimation, .property-details {
  width: 100%;
  box-sizing: border-box;
}

.container {
  max-width: 700px;
  width: 98vw;
  min-width: 350px;
  margin: 3.5em auto 2.5em auto;
  box-sizing: border-box;
  padding: 0 2em 2em 2em;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(99,102,241,0.08);
}
.container h1 {
  margin-top: 2.2em;
  margin-bottom: 0.7em;
}
.container form, .container #result {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  color: #1a237e;
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.description {
  text-align: center;
  margin-bottom: 1.5em;
  color: #64748b;
  font-size: 1.1em;
  line-height: 1.6;
}

.trust-signal {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1em 1.5em;
  margin: 1.5em auto 2em auto;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.trust-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  font-size: 0.95em;
  color: #475569;
  line-height: 1.5;
}

.trust-icon {
  font-size: 1.2em;
  opacity: 0.9;
  flex-shrink: 0;
}

.trust-text {
  font-weight: 500;
  line-height: 1.4;
}

/* Desktop improvements for trust signal */
@media (min-width: 768px) {
  .trust-signal {
    max-width: 700px;
    padding: 1.2em 2em;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  .trust-content {
    gap: 1em;
    font-size: 1.05em;
  }
  
  .trust-icon {
    font-size: 1.4em;
  }
}

@media (min-width: 1024px) {
  .trust-signal {
    max-width: 800px;
    padding: 1.5em 2.5em;
  }
  
  .trust-content {
    gap: 1.2em;
    font-size: 1.1em;
  }
  
  .trust-icon {
    font-size: 1.6em;
  }
}

.steps-preview {
  display: flex;
  justify-content: space-between;
  gap: 1.5em;
  margin: 2em auto 2.5em auto;
  max-width: 800px;
  padding: 0 1em;
}

.step {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75em;
}

.step-number {
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: #6366f1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.step-content h3 {
  margin: 0 0 0.5em 0;
  color: #1f2937;
  font-size: 1.1em;
  font-weight: 600;
}

.step-content p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9em;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .steps-preview {
    flex-direction: column;
    gap: 1.5em;
    margin: 1.5em auto 2em auto;
  }
  
  .step {
    flex-direction: row;
    text-align: left;
    gap: 1em;
  }
  
  .step-number {
    flex-shrink: 0;
  }
}

.address-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 2.5em;
  padding: 2em 2em 1.5em 2em;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(99,102,241,0.07);
}

label {
  font-weight: 700;
  margin-bottom: 7px;
  color: #283593;
  font-size: 1.09rem;
  letter-spacing: 0.01em;
}

input[type="text"] {
  width: 100%;
  padding: 0.8em 1em;
  border-radius: 8px;
  border: 1px solid #c7d2fe;
  font-size: 1.1em;
  margin-bottom: 1.2em;
  box-sizing: border-box;
}

input[type="text"]:focus {
  border-color: #4f8cff;
  background: #eaf1ff;
  box-shadow: 0 0 0 2px #c7d2fe;
}

small {
  color: #7b8190;
  margin-bottom: 2px;
  margin-top: 2px;
  font-size: 0.97rem;
  display: block;
  font-style: italic;
  padding-left: 2px;
  opacity: 0.85;
}

button[type="submit"] {
  width: 100%;
  padding: 1em 0;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  color: #fff;
  font-size: 1.2em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 1.5em;
}
button[type="submit"]:hover {
  background: linear-gradient(90deg, #60a5fa 0%, #6366f1 100%);
}

#result {
  margin-top: 26px;
  text-align: center;
  font-size: 1.08rem;
  color: #2c3e50;
  min-height: 28px;
  padding: 10px 8px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}
#result:empty {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.kadaster-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  background: #1a237e;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.kadaster-link:hover {
  background: #3949ab;
}
.info-links {
  margin: 18px 0 0 0;
  padding: 0 0 0 18px;
  font-size: 1.01rem;
}
.info-links li {
  margin-bottom: 6px;
}
.info-links a {
  color: #1a237e;
  text-decoration: underline;
  transition: color 0.2s;
}
.info-links a:hover {
  color: #3949ab;
}

.property-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}
.property-image {
  max-width: 180px;
  max-height: 140px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(60, 80, 180, 0.10);
  object-fit: cover;
  background: #f4f7fe;
}

/* Enhanced Property Card - Much Wider */
.property-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  max-width: 100%;
  border: 1px solid #e1e5e9;
}
.property-title {
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  color: #1a237e;
  margin-bottom: 26px;
  letter-spacing: 0.5px;
}
/* Property Image Styles - Larger */
.property-image-container {
  margin-bottom: 30px;
  text-align: center;
}

.property-main-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  object-fit: cover;
  width: 100%;
}

/* Price Estimation Styles - Enhanced */
.price-estimation {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.5em;
  margin-bottom: 1.5em;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.price-estimation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.price-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  margin-bottom: 1.25em;
}

.source-badge {
  background: rgba(255, 255, 255, 0.15) !important;
  padding: 0.4em 0.8em !important;
  border-radius: 8px !important;
  font-size: 0.75em !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-amount {
  font-size: 2.2em;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.5em 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* CheckDitHuis specific styling */
.price-estimation[style*="f59e42"] {
  background: linear-gradient(135deg, #f59e42 0%, #fbbf24 100%) !important;
  box-shadow: 0 8px 32px rgba(245, 158, 66, 0.15);
}

/* WoningStats specific styling */
.price-estimation[style*="10b981"] {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
}

.woningstats-price-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25em;
  margin: 1em 0;
  border-left: 4px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.woningstats-label {
  font-size: 0.85em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.woningstats-value {
  font-size: 1.6em;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.woningstats-range {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  font-weight: 500;
}

.confidence-interval {
  font-size: 1.1em;
  opacity: 0.9;
  margin-top: 10px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

/* Enhanced Property Table - Wider */
.property-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.property-table tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.property-table tr:last-child {
  border-bottom: none;
}

.property-table tr:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
}

.property-key {
  padding: 18px 24px;
  font-weight: 600;
  color: #495057;
  background-color: #f8f9fa;
  border-right: 1px solid #e9ecef;
  width: 35%;
  vertical-align: top;
  font-size: 1.05em;
}

.property-value {
  padding: 18px 24px;
  color: #212529;
  font-weight: 500;
  font-size: 1.05em;
  line-height: 1.4;
}

/* Enhanced BAG ID styling */
.bag-id {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #6c757d;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9em;
  text-align: center;
  margin-top: 20px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Google Maps Link Styling */
.coordinates-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.coordinates-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.coordinates-link::after {
  content: ' ↗';
  font-size: 0.8em;
}

.property-list {
  margin: 0 0 0 12px;
  padding: 0;
  list-style: disc inside;
  color: #374151;
  font-size: 1.04rem;
}
.property-null {
  opacity: 0.5;
}
.property-table tr {
  transition: background 0.15s;
}
.property-table tr:hover {
  background: #e3eaff;
}
@media (max-width: 900px) {
  .property-card {
    max-width: 98vw;
    min-width: unset;
    padding: 18px 4vw 14px 4vw;
  }
  .property-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }
  .property-table {
    font-size: 0.98rem;
  }
  .property-key, .property-value {
    font-size: 0.98rem;
    padding-right: 6px;
    padding-left: 4px;
  }
}

@media (max-width: 600px) {
  .container {
    max-width: 98vw;
    margin: 24px 1vw 0 1vw;
    padding: 22px 6vw 18px 6vw;
  }
  h1 {
    font-size: 1.5rem;
  }
  .description {
    font-size: 0.98rem;
    padding: 8px 2vw;
  }
  #result {
    font-size: 0.98rem;
    padding: 8px 2vw;
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  #result {
    max-width: 1000px;
  }
  
  .price-amount {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  #result {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .property-card {
    padding: 20px 15px;
  }
  
  .price-amount {
    font-size: 2.2em;
  }
  
  .woningstats-value {
    font-size: 1.4em;
  }
  
  .woningstats-range {
    font-size: 0.9em;
  }
  
  .woningstats-label {
    font-size: 0.85em;
  }
  
  .woningstats-price-item {
    padding: 1em;
    margin: 0.8em 0;
  }
  
  .price-estimation {
    padding: 25px 20px;
    border-radius: 14px;
  }
  
  .property-table {
    font-size: 0.95em;
  }
  
  .property-key,
  .property-value {
    padding: 12px 16px;
  }
  
  .property-main-image {
    max-height: 250px;
  }
} 

/* Data Sections Styling */
.data-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Remove old price comparison styles since we're not using them anymore */
.price-comparison,
.price-estimation.avm-price,
.price-estimation.woz-price {
  display: none;
} 

/* Credit Warning Styling */
.credit-warning {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.credit-warning p {
  margin: 5px 0;
  font-weight: 500;
}

.credit-warning p:first-child {
  font-weight: 600;
  font-size: 1.1em;
}

/* Source Info Styling */
.source-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #e1e5e9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.source-info p {
  margin: 5px 0;
  font-size: 0.95em;
  color: #374151;
}

.source-link {
  color: #1a237e;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.source-link:hover {
  color: #3949ab;
  text-decoration: underline;
}

/* Original Link Styling */
.original-link {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.view-original-btn {
  display: inline-block;
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.view-original-btn:hover {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

/* Debug Content Styling */
.property-value pre {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 12px;
  margin: 8px 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  color: #495057;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
} 

.property-details {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(99,102,241,0.07);
  padding: 2.5em 2em 2em 2em;
  margin: 2.5em 0 2.5em 0;
  width: 100%;
  max-width: 1050px;
}
.details-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 1em;
  text-align: center;
}
.property-details table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.7em;
  font-size: 1.1em;
}
.property-details td {
  padding: 0.7em 1em;
  border-radius: 8px;
}
.property-details tr td:first-child {
  color: #6366f1;
  font-weight: 600;
  background: #f1f5ff;
  width: 40%;
}
.property-details tr td:last-child {
  color: #22223b;
  background: #f8fafc;
  font-weight: 500;
} 

@media (max-width: 1300px) {
  .container {
    max-width: 98vw !important;
    padding: 0 0.5em;
  }
} 

@media (max-width: 800px) {
  .container {
    max-width: 99vw !important;
    padding: 0 1em 1em 1em;
    border-radius: 14px;
  }
  form, .price-estimation, .property-details {
    padding: 1em 1em 1em 1em;
    margin: 1.2em 0 1.2em 0;
    max-width: 99vw;
    border-radius: 14px;
  }
  .price-title {
    font-size: 1.1em;
  }
  .price-amount {
    font-size: 2em;
  }
  .details-title {
    font-size: 1.1em;
  }
  .property-details table {
    font-size: 1em;
  }
}
@media (max-width: 600px) {
  .container {
    max-width: 100vw !important;
    padding: 0 1em 0.5em 1em;
    border-radius: 12px;
  }
  form, .price-estimation, .property-details {
    padding: 0.7em 1em 0.7em 1em;
    margin: 0.7em 0 0.7em 0;
    max-width: 100vw;
    border-radius: 12px;
  }
  .price-title {
    font-size: 1em;
  }
  .price-amount {
    font-size: 1.3em;
  }
  .details-title {
    font-size: 1em;
  }
  .property-details table {
    font-size: 0.95em;
  }
  
  /* WoningStats mobile adjustments */
  .woningstats-value {
    font-size: 1.2em;
  }
  
  .woningstats-range {
    font-size: 0.8em;
  }
  
  .woningstats-label {
    font-size: 0.8em;
  }
  
  .woningstats-price-item {
    padding: 0.8em;
    margin: 0.6em 0;
  }
}
@media (max-width: 400px) {
  .container, .price-estimation, .property-details, form {
    padding: 0.5em 0.8em;
    font-size: 0.95em;
  }
  .price-title, .details-title {
    font-size: 0.95em;
  }
  .price-amount {
    font-size: 1em;
  }
  
  /* WoningStats very small screen adjustments */
  .woningstats-value {
    font-size: 1.1em;
  }
  
  .woningstats-range {
    font-size: 0.75em;
  }
  
  .woningstats-label {
    font-size: 0.75em;
  }
  
  .woningstats-price-item {
    padding: 0.6em;
    margin: 0.5em 0;
  }
} 

.loading-card {
  background: white;
  border-radius: 16px;
  padding: 2.5em;
  margin: 2em auto;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
}

.loading-image {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto;
  animation: bounce 2s infinite;
}

.loading-text-container {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: center;
}

.loading-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  letter-spacing: -0.02em;
}

.loading-subtitle {
  font-size: 1em;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #6366f1;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .loading-card {
    padding: 2em 1.5em;
    margin: 1.5em auto;
  }
  
  .loading-title {
    font-size: 1.2em;
  }
  
  .loading-subtitle {
    font-size: 0.9em;
  }
  
  .loading-image {
    width: 80px;
    height: 80px;
  }
} 

.vertical-spacer {
  height: 0.08em;
  width: 100%;
  display: block;
}
@media (max-width: 600px) {
  .vertical-spacer {
    height: 0.05em;
  }
} 

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 16px rgba(99,102,241,0.08);
  max-height: 220px;
  overflow-y: auto;
  font-size: 1em;
}
.autocomplete-suggestion {
  padding: 0.7em 1em;
  cursor: pointer;
  border-bottom: 1px solid #f1f5ff;
}
.autocomplete-suggestion:last-child {
  border-bottom: none;
}
.autocomplete-suggestion.active,
.autocomplete-suggestion:hover {
  background: #f1f5ff;
  color: #22223b;
} 

.site-footer {
  margin-top: 3em;
  background: #f1f5f9;
  padding: 1.5em 0 1.2em 0;
  border-top: 1.5px solid #cbd5e1;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 2px 16px 0 rgba(99,102,241,0.04);
  width: 100vw;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-nav {
  display: flex;
  gap: 2.5em;
  justify-content: center;
  align-items: center;
}
.footer-nav a, .footer-nav button {
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  margin-top: 0;
}
.footer-nav a {
  color: #1e40af;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08em;
  letter-spacing: 0.01em;
  padding: 0.2em 0.7em;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #dbeafe;
  color: #1e3a8a;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .footer-nav {
    gap: 1.2em;
    flex-direction: column;
  }
  .site-footer {
    padding: 1.2em 0 1em 0;
    border-radius: 0;
  }
} 

.back-home-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  padding: 0.65em 1.3em;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.08em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(16,185,129,0.10);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  border: none;
  outline: none;
  cursor: pointer;
}
.back-home-btn:hover, .back-home-btn:focus {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
  color: #e0f2f1 !important;
  box-shadow: 0 4px 16px rgba(16,185,129,0.16);
  text-decoration: underline;
} 

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  margin-top: 0.5em;
  width: 100%;
  box-sizing: border-box;
}
.contact-form label {
  font-weight: 700;
  color: #283593;
  margin-bottom: 7px;
  font-size: 1.09rem;
  letter-spacing: 0.01em;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  padding: 0.8em 1em;
  border-radius: 8px;
  border: 1px solid #c7d2fe;
  font-size: 1.1em;
  box-sizing: border-box;
  background: #f8fafc;
  transition: border 0.18s, box-shadow 0.18s;
  width: 100%;
  max-width: 100%;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #6366f1;
  background: #eaf1ff;
  box-shadow: 0 0 0 2px #c7d2fe;
  outline: none;
}
.contact-form textarea {
  min-height: 110px;
  resize: vertical;
  font-family: inherit;
}
.contact-form button[type="submit"] {
  margin-top: 0.7em;
}
.contact-success {
  text-align: center;
  padding: 2.5em 1.5em 2em 1.5em;
  background: #f1f5ff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(99,102,241,0.07);
  margin-top: 2em;
}
.contact-success h2 {
  margin-bottom: 0.7em;
}
@media (max-width: 600px) {
  .contact-form {
    gap: 0.7em;
  }
  .contact-success {
    padding: 1.2em 0.5em 1em 0.5em;
  }
} 

.contact-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3em 0 2em 0;
  background: none;
}
.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(99,102,241,0.07);
  padding: 2em 2em 1.5em 2em;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 2em;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}
.contact-title {
  color: #6366f1;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.5em;
  text-align: left;
}
.contact-desc {
  color: #374151;
  font-size: 1.08rem;
  margin-bottom: 1.2em;
  line-height: 1.5;
}
.contact-email-link {
  color: #10b981;
  text-decoration: underline;
  font-weight: 600;
}
.contact-email-link:hover {
  color: #059669;
}
@media (max-width: 600px) {
  .contact-card {
    padding: 1.1em 0.7em 1em 0.7em;
    max-width: 98vw;
  }
  .contact-title {
    font-size: 1.3rem;
  }
} 

.lang-select-container {
  position: fixed;
  top: 24px;
  right: 36px;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.07);
  padding: 0.1em 0.3em;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
}
#lang-select {
  padding: 0.4em 1em;
  border-radius: 8px;
  font-size: 1em;
  border: 1.2px solid #c7d2fe;
  background: #f8fafc;
  color: #283593;
  font-weight: 600;
  outline: none;
  transition: border 0.18s, box-shadow 0.18s;
}
#lang-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px #c7d2fe;
}
@media (max-width: 600px) {
  .lang-select-container {
    top: 10px;
    right: 10px;
    padding: 0.05em 0.1em;
    border-radius: 7px;
  }
  #lang-select {
    font-size: 0.98em;
    padding: 0.3em 0.7em;
  }
} 

.footer-support-btn {
  background: linear-gradient(90deg, #38bdf8 0%, #6366f1 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.08em;
  border: none;
  border-radius: 6px;
  padding: 0.2em 1.2em;
  height: 2.4em;
  margin: 0;
  box-shadow: 0 2px 8px rgba(99,102,241,0.07);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.footer-support-btn:hover, .footer-support-btn:focus {
  background: linear-gradient(90deg, #6366f1 0%, #38bdf8 100%);
  color: #e0f2f1 !important;
  box-shadow: 0 4px 16px rgba(99,102,241,0.13);
} 

.footer-get-updates-btn {
  background: linear-gradient(90deg, #fbbf24 0%, #6366f1 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.08em;
  border: none;
  border-radius: 6px;
  padding: 0.2em 1.2em;
  height: 2.4em;
  margin-left: 0.5em;
  box-shadow: 0 2px 8px rgba(99,102,241,0.07);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.footer-get-updates-btn:hover, .footer-get-updates-btn:focus {
  background: linear-gradient(90deg, #6366f1 0%, #fbbf24 100%);
  color: #e0f2f1 !important;
  box-shadow: 0 4px 16px rgba(99,102,241,0.13);
} 

.tile-link-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5em 0.75em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  margin: 0;
  transition: all 0.2s ease;
  position: relative;
  backdrop-filter: blur(10px);
}

.tile-link-btn .icon {
  font-size: 1em;
  margin: 0;
  line-height: 1;
  display: inline-block;
}

.tile-link-btn:hover, .tile-link-btn:focus {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Screen reader only class for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
} 

#woz-history-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
} 

.contact-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  font-size: 1.3em;
  font-weight: 700;
  background: linear-gradient(90deg, #667eea 0%, #5eaefd 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0001;
}
.contact-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.contact-send-btn:hover:enabled {
  background: linear-gradient(90deg, #5a67d8 0%, #38b2fd 100%);
  box-shadow: 0 4px 16px #5eaefd33;
} 