* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.5;
}

.container {
  min-height: 100vh;
  padding: 2rem 1rem;
}

.wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
}

.form-section {
  flex: 1;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.main-title {
  font-size: 1.875rem;
  font-weight: bold;
  color: #14b8a6;
  margin-bottom: 2rem;
}

.section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-number {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #14b8a6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.info-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.subsection-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.button-group button {
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  background: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.button-group button:hover {
  border-color: #99f6e4;
}

.button-group button.active {
  border-color: #14b8a6;
  background-color: #f0fdfa;
  color: #0f766e;
}

.service-card {
  padding: 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  background: white;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.service-card:hover {
  border-color: #99f6e4;
}

.service-card.active {
  border-color: #14b8a6;
  background-color: #f0fdfa;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.service-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.property-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.5rem;
  color: #0d9488;
}

.coupon-wrapper {
  display: flex;
  gap: 0.5rem;
}

.coupon-wrapper input {
  flex: 1;
}

.apply-button {
  padding: 0.5rem 1.5rem;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.apply-button:hover {
  background-color: #1d4ed8;
}

.payment-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.card-icon {
  width: 2rem;
  height: 1.5rem;
  background-color: #2563eb;
  border-radius: 0.25rem;
}

.warning-text {
  font-size: 0.875rem;
  color: #dc2626;
  margin-top: 0.5rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
}

.link {
  color: #14b8a6;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background-color: #14b8a6;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background-color: #0d9488;
}

.summary-section {
  width: 24rem;
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.summary-card {
  background: linear-gradient(135deg, #14b8a6 0%, #2563eb 100%);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  color: white;
  height: auto;
}

.summary-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.8rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.summary-label {
  font-weight: 500;
}

.summary-value {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
  color: #ffffff;
  line-height: 1.5;
}
.summary-value li {
  margin-bottom: 4px;
  word-break: break-word;
}

.summary-total {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}

.total-amount {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.total-label {
  color: #ccfbf1;
}

/* Responsive */
@media (max-width: 1024px) {
  .wrapper {
    flex-direction: column;
  }

  .summary-section {
    width: 100%;
    position: static;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Inline Field Validation Styles */
.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: #fee;
  border-left: 3px solid #dc2626;
  border-radius: 0.25rem;
  color: #991b1b;
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

.error-message i {
  font-style: normal;
  font-size: 1rem;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.checkbox-group .error-message {
  margin-top: 0.5rem;
  margin-left: 0;
}

/* Simple custom alert (no Bootstrap required) */
.custom-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.custom-alert.alert-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.custom-alert.alert-success {
  background-color: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.custom-alert .btn-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}
