/* Sample request banner + modal */

.sr-ce-banner-slot {
  margin: 1.5rem 0;
}

.sr-banner-wrapper {
  position: relative;
  display: inline-block;
}

.sr-banner {
  cursor: pointer;
}

.sr-banner-bg {
  position: relative;
  padding: 14px 18px;
  border-radius: 6px;
  background-color: #333;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/*
 * You can override this in your theme and set your own image:
 * .sr-banner-bg { background-image: url('path/to/your/image.jpg'); }
 */

.sr-banner-text {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Modal */

.sr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.sr-modal {
  background: #fff;
  max-width: 480px;
  width: 100%;
  padding: 20px 22px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

.sr-modal-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 600;
}

.sr-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.sr-form .sr-field {
  margin-bottom: 10px;
}

.sr-form label {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  margin-bottom: 3px;
}

.sr-form input,
.sr-form textarea {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.sr-form textarea {
  min-height: 72px;
  resize: vertical;
}

.sr-submit-btn {
  margin-top: 8px;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  background: #C6B375;
  color: #ffffff;
  font-weight: 400;
  cursor: pointer;
}

.sr-submit-btn:hover {
  opacity: 0.92;
}

html.sr-modal-open,
html.sr-modal-open body {
  overflow: hidden;
}

/* Messages */

.sr-success,
.sr-error {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.sr-success {
  background: #e3f6e8;
  color: #1b7a38;
}

.sr-error {
  background: #fde4e4;
  color: #a12626;
}
