/* Shared components */

/* Buttons */
.btn {
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-primary {
  background: #0c4466;
  color: #f9f9f9;
  border-color: #0c4466;
}

.btn-outline {
  background: transparent;
  color: #0c4466;
  border-color: rgba(12, 68, 102, 0.3);
}

.btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

/* Sections & cards */
.section {
  margin-bottom: 3rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: #64748b;
  margin-bottom: 0.3rem;
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: #6b7280;
  max-width: 36rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.25rem 1.3rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.card img.card-thumb {
  border-radius: 0.7rem;
  margin-bottom: 0.85rem;
  object-fit: cover;
  width: 100%;
  height: 200px;
}

.card-title {
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.card-price {
  font-weight: 700;
  color: #0c4466;
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.card-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.card-body {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

.notice-list,
.service-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-left: 1.1rem;
}

.notice-list li,
.service-list li {
  line-height: 1.5;
}

/* Two-column content */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
}

.muted {
  color: #6b7280;
}

/* Simple gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
}

.gallery img {
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  object-fit: cover;
  width: 100%;
  height: 170px;
}

/* Lists */
.stacked-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.stacked-list li {
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.94rem;
}

.stacked-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Forms */
form {
  display: grid;
  gap: 0.85rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 0.5rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #0c4466;
  outline-offset: 1px;
  border-color: #0c4466;
  box-shadow: 0 0 0 3px rgba(12, 68, 102, 0.1);
}

.field-row {
  display: grid;
  gap: 0.75rem;
}

/* Success and Error Messages */
.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border: 1px solid #f5c6cb;
}

/* Form Validation States */
input.error,
textarea.error,
select.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Enhanced select styling */
select {
  background: white;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Responsive components */
@media (max-width: 880px) {
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}
