.shell--message {
  background: #f3f4f6;
  padding: 28px 16px 48px;
}

.detail-paper__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0 28px;
}

a.df-msg-open-btn,
a.df-booking-btn {
  text-decoration: none;
}

.df-msg-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: #2f6df6;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(47, 109, 246, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.df-msg-open-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(47, 109, 246, 0.34);
}

body.df-msg-modal-open {
  overflow: hidden;
}

.df-msg-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.df-msg-modal[hidden] {
  display: none !important;
}

.df-msg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.df-msg-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.df-msg-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.df-msg-modal__body .df-msg-card {
  box-shadow: none;
  border-radius: 0;
  padding: 36px 20px 18px;
}

.df-msg-modal__body .df-msg-card__title {
  margin-bottom: 6px;
  font-size: 20px;
}

.df-msg-modal__body .df-msg-card__hint {
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.5;
}

.df-msg-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.df-msg-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  padding: 28px 24px 24px;
}

.df-msg-card__title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: #2f6df6;
}

.df-msg-card__hint {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
}

.df-msg-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.df-msg-field--textarea {
  align-items: flex-start;
}

.df-msg-label {
  flex: 0 0 88px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #222;
  text-align: right;
  white-space: nowrap;
}

.df-msg-field--textarea .df-msg-label {
  padding-top: 10px;
}

.df-msg-field > .df-msg-input,
.df-msg-field > .df-msg-textarea,
.df-msg-field > .df-msg-input-group {
  flex: 1 1 auto;
  min-width: 0;
}

.df-msg-required {
  color: #e53935;
  margin-right: 2px;
}

.df-msg-input,
.df-msg-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #222;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.df-msg-input:focus,
.df-msg-textarea:focus {
  border-color: #2f6df6;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.12);
}

.df-msg-textarea {
  resize: vertical;
  min-height: 64px;
}

.df-msg-input-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.df-msg-input-group .df-msg-input {
  flex: 1 1 auto;
  min-width: 0;
}

.df-msg-sms-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  line-height: 1;
  color: #fff;
  background: #2f6df6;
  cursor: pointer;
  white-space: nowrap;
}

.df-msg-sms-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.df-msg-submit {
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: #2f6df6;
  cursor: pointer;
}

.df-msg-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.df-msg-tip {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
}

.df-msg-tip.is-error {
  color: #e53935;
}

.df-msg-tip.is-success {
  color: #2e7d32;
}

@media (max-width: 640px) {
  .df-msg-card {
    padding: 22px 16px 18px;
  }

  .df-msg-card__title {
    font-size: 20px;
  }

  .df-msg-field {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .df-msg-label {
    flex: none;
    text-align: left;
    white-space: normal;
  }

  .df-msg-field--textarea .df-msg-label {
    padding-top: 0;
  }

  .df-msg-input-group {
    flex-direction: column;
  }

  .df-msg-sms-btn {
    padding: 11px 14px;
  }
}
