/* ===== FORM2304 | strict B2B style ===== */

[id^="form"][id$="Modal"] .modal-content {
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(26, 39, 53, 0.12);
  background: #ffffff;
}

[id^="form"][id$="Modal"] .modal-header {
  padding: 24px 28px 18px;
  background: #f7f9fb;
  border-bottom: 1px solid #e3e8ee;
}

[id^="form"][id$="Modal"] .modal-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: #1f2a37;
  letter-spacing: 0;
}

[id^="form"][id$="Modal"] .modal-body {
  padding: 26px 28px 14px;
  background: #ffffff;
}

[id^="form"][id$="Modal"] .modal-footer {
  padding: 18px 28px 26px;
  background: #ffffff;
  border-top: 1px solid #e8edf2;
  text-align: left;
}

/* Labels */
[id^="form"][id$="Form"] .form-group {
  margin-bottom: 18px;
}

[id^="form"][id$="Form"] .control-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  color: #2d3a48;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[id^="form"][id$="Form"] .required .control-label:after {
  content: " *";
  color: #b42318;
  font-weight: 700;
}

/* Inputs */
[id^="form"][id$="Form"] .form-control {
  height: 46px;
  padding: 11px 14px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
  color: #1f2a37;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

[id^="form"][id$="Form"] textarea.form-control {
  min-height: 120px;
  height: auto;
  resize: vertical;
  padding-top: 12px;
  padding-bottom: 12px;
}

[id^="form"][id$="Form"] .form-control::placeholder {
  color: #8091a5;
}

[id^="form"][id$="Form"] .form-control:hover {
  border-color: #aebccc;
}

[id^="form"][id$="Form"] .form-control:focus {
  border-color: #50657d;
  box-shadow: 0 0 0 3px rgba(80, 101, 125, 0.10);
  background: #ffffff;
}

/* Input groups */
[id^="form"][id$="Form"] .input-group .form-control {
  border-radius: 6px 0 0 6px;
}

[id^="form"][id$="Form"] .input-group-btn .btn {
  height: 46px;
  border: 1px solid #cfd8e3;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: #f5f7fa;
  color: #425466;
  box-shadow: none;
}

/* Radio / checkbox */
[id^="form"][id$="Form"] .radio,
[id^="form"][id$="Form"] .checkbox,
[id^="form"][id$="Form"] .radio-inline,
[id^="form"][id$="Form"] .checkbox-inline {
  color: #334155;
  font-size: 14px;
}

[id^="form"][id$="Form"] .radio label,
[id^="form"][id$="Form"] .checkbox label,
[id^="form"][id$="Form"] .radio-inline label,
[id^="form"][id$="Form"] .checkbox-inline label {
  font-weight: 500;
}

/* Upload area */
[id^="form"][id$="Form"] .custom-file-block {
  border: 1px solid #d7dee7;
  border-radius: 6px;
  background: #f8fafc;
  padding: 14px;
}

[id^="form"][id$="Form"] .file-select-btn {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #bcc8d6;
  border-radius: 6px;
  background: #ffffff;
  color: #243241;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
  transition: all 0.2s ease;
}

[id^="form"][id$="Form"] .file-select-btn:hover,
[id^="form"][id$="Form"] .file-select-btn:focus {
  background: #f2f5f8;
  border-color: #9fb0c2;
  color: #1f2a37;
}

[id^="form"][id$="Form"] .uploaded-file-list {
  margin-top: 12px;
}

[id^="form"][id$="Form"] .selected-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid #e1e7ee;
  border-radius: 6px;
  background: #ffffff;
  color: #243241;
  font-size: 14px;
}

[id^="form"][id$="Form"] .selected-file-item span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
}

[id^="form"][id$="Form"] .selected-file-item .btn-danger {
  padding: 6px 10px;
  border: 1px solid #d7dee7;
  border-radius: 6px;
  background: #ffffff;
  color: #8a1c1c;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
  transition: all 0.2s ease;
}

[id^="form"][id$="Form"] .selected-file-item .btn-danger:hover {
  border-color: #c9d3de;
  background: #f8fafc;
  color: #6f1414;
}

/* Main button */
[id^="form"][id$="Button"].btn-primary {
  min-width: 220px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid #2f4358;
  border-radius: 6px;
  background: #2f4358;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

[id^="form"][id$="Button"].btn-primary:hover,
[id^="form"][id$="Button"].btn-primary:focus {
  background: #243647;
  border-color: #243647;
  color: #ffffff;
}

/* Errors */
[id^="form"][id$="Form"] .text-danger,
[id^="form"][id$="Modal"] .text-danger {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.45;
  color: #b42318;
}

[id^="form"][id$="Form"] .has-error .form-control,
[id^="form"][id$="Form"] .has-error .custom-file-block {
  border-color: #e2a4a1 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

/* Success */
[id^="form"][id$="Modal"] .alert-success {
  margin-top: 0;
  border: 1px solid #cfe3d5;
  border-radius: 6px;
  background: #f3faf5;
  color: #1f5130;
  font-weight: 600;
  box-shadow: none;
}

/* Close button */
[id^="form"][id$="Modal"] .close {
  opacity: 1;
  color: #6b7b8c;
  text-shadow: none;
  font-size: 24px;
}

[id^="form"][id$="Modal"] .close:hover {
  color: #243241;
}

/* Optional helper text */
[id^="form"][id$="Form"] .form-upload-hint,
[id^="form"][id$="Form"] .form-helper-text {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #6c7a89;
}

/* Mobile */
@media (max-width: 767px) {
  [id^="form"][id$="Modal"] .modal-header,
  [id^="form"][id$="Modal"] .modal-body,
  [id^="form"][id$="Modal"] .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  [id^="form"][id$="Modal"] .modal-title {
    font-size: 22px;
  }

  [id^="form"][id$="Button"].btn-primary {
    width: 100%;
  }

  [id^="form"][id$="Form"] .selected-file-item {
    flex-direction: column;
    align-items: flex-start;
  }
}