/* Shipping Details Page Styles */

.checkout-flow {
  min-height: 100vh;
  background: #f9fafb;
}

.checkout-content {
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 0 2rem;
}

.content-header {
  text-align: center;
  margin-bottom: 2rem;
}

.content-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.content-subtitle {
  font-size: 1rem;
  color: #6b7280;
}

.form-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.shipping-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f3f4f6;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row--three {
  grid-template-columns: 2fr 1fr 1fr;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.form-input {
  padding: 0.625rem 0.875rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: #111827;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn--primary {
  background: #16a34a;
  color: white;
  border: none;
}

.btn--primary:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn--secondary {
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.btn--secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.text-red-500 {
  color: #ef4444;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .checkout-content {
    margin: 1.5rem auto;
    padding: 0 1rem;
  }

  .content-title {
    font-size: 1.5rem;
  }

  .content-subtitle {
    font-size: 1rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .form-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-section-title {
    font-size: 1.125rem;
    padding-bottom: 0.75rem;
  }

  .form-row,
  .form-row--three {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Recent Address Section */
.recent-address-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
}

.recent-address-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.recent-address-icon {
  color: #16a34a;
}

.recent-address-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.recent-address-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 1.75rem;
}

.recent-address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.recent-address-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.recent-address-card:hover {
  border-color: #16a34a;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.recent-address-card.selected {
  border-color: #16a34a;
  background: #dcfce7;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.recent-address-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.recent-address-line {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

.recent-address-country {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Email field hint */
.form-hint {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
}

.form-input[readonly] {
  background: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .recent-address-grid {
    grid-template-columns: 1fr;
  }
  
  .recent-address-subtitle {
    margin-left: 0;
  }
}
