/* ── Media Update Form v3 – Card style, full-width, responsive ── */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.muf-wrap input,
.muf-wrap select,
.muf-wrap textarea,
.muf-wrap button {
  font-family: inherit;
}


.muf-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  color: #212121;
}
.muf-wrap *,
.muf-wrap *::before,
.muf-wrap *::after {
  box-sizing: border-box;
}

/* ── Notices ── */
.muf-notice {
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 3px;
}
.muf-notice--success {
  background: #e8f5e9;
  border-left: 4px solid #43a047;
  color: #1b5e20;
}
.muf-notice--error {
  background: #ffebee;
  border-left: 4px solid #e53935;
  color: #b71c1c;
}

/* ── Field wrapper – card style (boxed, shadowed) ── */
.muf-field {
  width: 100%;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #e6e9ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}

/* ── Labels ── */
.muf-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #212121;
  margin-bottom: 8px;
  line-height: 1.5;
}
.muf-label.muf-required::after {
  content: " *";
  color: #e53935;
}

/* ── Hint text (orange like the original) ── */
.muf-hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #e65100;
  margin-top: 2px;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* ── Fieldset (checkbox group) ── */
fieldset.muf-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
legend.muf-label {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

/* ── Text inputs & textareas ── */
.muf-input,
.muf-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: none!important;
  border-bottom: 1px solid #bdbdbd!important;
  padding: 8px 2px;
  font-size: 14px;
  color: #424242!important;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.muf-input:focus,
.muf-textarea:focus {
  border-bottom-color: #1a73e8;
}
.muf-input::placeholder,
.muf-textarea::placeholder {
  color: #bdbdbd;
}
.muf-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Checkboxes ── */
.muf-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  color: #424242;
  line-height: 1.4;
  user-select: none;
}
.muf-checkbox {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  cursor: pointer;
  accent-color: #1a73e8;
}

/* ── "Other" free-text input ── */
.muf-other-wrap {
  margin-top: 10px;
  padding-left: 26px;
}
.muf-other-wrap .muf-input {
  border-bottom-color: #bdbdbd;
}

/* ── File upload ── */
.muf-upload-area {
  width: 100%;
}
.muf-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.muf-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #bdbdbd;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  color: #424242;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.muf-file-btn:hover {
  border-color: #757575;
  background: #f0f0f0;
}
.muf-file-list {
  margin-top: 10px;
}
.muf-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #424242;
  padding: 4px 0;
  flex-wrap: wrap;
}
.muf-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #e53935;
  font-size: 18px;
  line-height: 1;
  padding: 0 3px;
  flex-shrink: 0;
}
.muf-file-error {
  color: #e53935;
  font-size: 12px;
  margin-top: 6px;
  display: block;
}

/* ── Actions row ── */
.muf-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 16px;
}

/* ── Buttons ── */
.muf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.muf-btn--primary {
  background: #f9b233!important;
  color: #015273!important;
	border:none!important;
}
.muf-btn--primary:hover {
  background: #e6a32c!important;
}
.muf-btn--primary:disabled {
  background: #e0c896!important;
  color: #6b7e87!important;
  cursor: not-allowed;
}
.muf-btn--ghost {
  background: none;
  color: #015273!important;
  border: 1px solid #015273!important;
}
.muf-btn--ghost:hover {
  background: rgba(1, 82, 115, 0.07)!important;
}

/* ── Field spacing handled by card margin-bottom above ── */

/* ── Responsive ── */
@media (max-width: 480px) {
  .muf-field {
    padding: 18px;
  }
  .muf-btn {
    width: 100%;
    justify-content: center;
  }
  .muf-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .muf-other-wrap {
    padding-left: 0;
  }
}
