/* General container styling */
.msg-message-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0;
}

/* Content wrapper */
.msg-content-wrapper {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form wrapper */
.msg-form-wrapper {
  width: 100%;
}

.msg-form-wrapper h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
  color: #0dab49;
}

.msg-form-wrapper h2 strong {
  color: #f7931f;
}

/* Form styling */
form[name="sentMessage"] {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form group */
.msg-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg-form-group label {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

/* Input and textarea styling */
.msg-form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.msg-form-control:focus {
  outline: none;
  border-color: #f7931f;
  box-shadow: 0 0 5px rgba(247, 147, 31, 0.5);
}

/* Form row for side-by-side fields */
.msg-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.msg-form-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Checkbox group */
.msg-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-checkbox-group p {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.msg-checkbox-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.msg-checkbox-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-checkbox-col div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.msg-checkbox-col input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border: 1px solid #f7931f;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.msg-checkbox-col input[type="checkbox"]:checked {
  background-color: #f7931f;
  border-color: #0dab49;
}

.msg-checkbox-col input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 8px;
  border: solid #0dab49;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Button styling */
.msg-btn {
  padding: 12px 20px;
  background-color: #f7931f;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
}

.msg-btn:hover {
  background-color: #0dab49;
}

/* Large screens: Two-column layout for specific rows */
@media (min-width: 768px) {
  .msg-form-row {
    grid-template-columns: 1fr 1fr;
  }

  .msg-checkbox-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Small screens: Stack everything in a single column */
@media (max-width: 767px) {
  .msg-message-container {
    padding: 10px;
  }

  .msg-content-wrapper {
    padding: 20px;
  }

  .msg-form-row {
    grid-template-columns: 1fr;
  }

  .msg-checkbox-row {
    grid-template-columns: 1fr;
  }

  .msg-form-wrapper h2 {
    font-size: 1.5rem;
  }
}
