/* crouse-chapel-wedding.css */
/* Styles for Crouse Chapel Wedding Application Form - Aligned with Memorial Garden */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 20px auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#applicationForm {
  background: white;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #2c5aa0;
}

.header h1 {
  color: #2c5aa0;
  font-size: 2em;
  margin-bottom: 10px;
}

.header h2 {
  color: #2c5aa0;
  font-size: 1.5em;
  margin-bottom: 5px;
  font-weight: normal;
}

.section-title {
  color: #2c5aa0;
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}

.required {
  color: red;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2c5aa0;
  box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.radio-group,
.checkbox-group {
  margin: 10px 0;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.radio-group label,
.checkbox-group label {
  display: inline;
  margin-right: 20px;
  font-weight: 400;
  cursor: pointer;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.four-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .two-col,
  .three-col,
  .four-col {
    grid-template-columns: 1fr;
  }
}

.form-actions {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

button[type="submit"] {
  background: #2c5aa0;
  color: #fff;
  padding: 15px 40px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background: #1e3d6f;
}

button[type="submit"]:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.info-note {
  background: #f0f8ff;
  border-left: 4px solid #2c5aa0;
  padding: 12px;
  margin: 15px 0;
  color: #333;
  border-radius: 4px;
}

.policy-box {
  background: #f0f8ff;
  border-left: 4px solid #2c5aa0;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.policy-box h4 {
  color: #2c5aa0;
  margin-bottom: 10px;
}

.policy-box ul {
  margin-left: 20px;
  margin-top: 10px;
}

.policy-box li {
  margin-bottom: 5px;
}

.success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 30px;
  text-align: center;
}

.success-message h3 {
  margin-bottom: 15px;
  color: #155724;
}

.error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

.error-message h3 {
  margin-bottom: 10px;
  color: #721c24;
}

.loading {
  text-align: center;
  padding: 20px;
  background-color: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 4px;
  margin-bottom: 20px;
  color: #1565c0;
  font-weight: bold;
}

.hidden {
  display: none !important;
}

.fee-info {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
}

.fee-info h4 {
  color: #333;
  margin-bottom: 15px;
}

.fee-breakdown {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.fee-breakdown.total {
  font-weight: bold;
  font-size: 1.1em;
  border-bottom: 2px solid #2c5aa0;
  border-top: 2px solid #2c5aa0;
  margin-top: 10px;
  padding-top: 10px;
}

.musician-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin: 5px;
  transition: background-color 0.3s;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Accessibility utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  border: 0 !important;
}

/* Responsive design */
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  .two-col,
  .three-col,
  .four-col {
    grid-template-columns: 1fr;
  }

  #applicationForm {
    padding: 20px;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
  }

  .container {
    max-width: 100%;
    padding: 0;
    box-shadow: none;
  }

  #applicationForm {
    padding: 20px;
  }

  button,
  .btn-secondary {
    display: none;
  }
}