/* =========================================
   Reset & Base
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* html {
  font-size: 16px;
} */

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.7;
}

a {
  color: #e95420;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================
   Header
   ========================================= */
.site-header {
  background-color: #fff;
  border-top: 4px solid #e95420;
  border-bottom: 1px solid #ddd;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
}

.site-logo a {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.site-logo a:hover {
  color: #e95420;
}

/* =========================================
   Main Content
   ========================================= */
.main-content {
  padding: 40px 20px 60px;
}

.page-container {
  max-width: 860px;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 40px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  border-left: 5px solid #e95420;
  padding-left: 12px;
  margin-bottom: 16px;
}

.page-lead {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 32px;
}

/* =========================================
   Support Spec Table
   ========================================= */
.support-spec-section {
  margin-bottom: 28px;
}

.support-spec-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.support-spec-table th,
.support-spec-table td {
  border: 1px solid #fff;
  padding: 10px 12px;
  font-size: 0.92rem;
  text-align: center;
  vertical-align: middle;
}

.spec-label,
.spec-sub-label {
  background-color: #e95420;
  color: #fff;
  font-weight: bold;
}

.spec-plan,
.spec-cell {
  background-color: #e5e5e5;
  color: #222;
}

.spec-plan {
  font-weight: bold;
}

/* =========================================
   Form Sections
   ========================================= */
.form-section {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  gap: 20px;
}

.form-section:first-of-type {
  border-top: 1px solid #eee;
}

.form-label {
  flex: 0 0 220px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #333;
  padding-top: 6px;
}

.form-control {
  flex: 1;
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: #e95420;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.radio-label.is-disabled {
  color: #a7a7a7;
  cursor: not-allowed;
}

.radio-label.is-disabled small {
  color: #b5b5b5;
}

/* Text / Number Input */
.input-text,
.input-number {
  width: 260px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #333;
  transition: border-color 0.2s;
}

.input-text:focus,
.input-number:focus {
  border-color: #e95420;
  outline: none;
  box-shadow: 0 0 0 2px rgba(233, 84, 32, 0.15);
}

.input-wide {
  width: min(100%, 420px);
}

.input-unit {
  font-size: 0.85rem;
  color: #555;
  margin-left: 6px;
}

.node-input-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.node-input-wrap {
  display: flex;
  align-items: center;
}

.min-node-display {
  font-size: 0.85rem;
  color: #555;
}

#min_node_count {
  font-weight: bold;
  color: #e95420;
}

.input-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
}

/* Select */
.input-select {
  width: 260px;
  height: 38px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.9rem;
  line-height: 1.2;
  font-family: inherit;
  color: #333;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.input-select:focus {
  border-color: #e95420;
  outline: none;
  box-shadow: 0 0 0 2px rgba(233, 84, 32, 0.15);
}

#ubuntu_version.input-select:focus {
  padding: 8px 10px !important;
}

#contract_period.input-select:focus {
  padding: 8px 10px !important;
}

#contract_start_month.input-select:focus {
  padding: 8px 10px !important;
}

/* Textarea */
.input-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #333;
  resize: vertical;
  transition: border-color 0.2s;
}

.input-textarea:focus {
  border-color: #e95420;
  outline: none;
  box-shadow: 0 0 0 2px rgba(233, 84, 32, 0.15);
}

/* Error Message */
.error-msg {
  font-size: 0.8rem;
  color: #c0392b;
  margin: 6px 0 0;
  padding: 0;
  min-height: 1em;
}

p.error-msg {
  margin: 6px 0 0 !important;
  padding: 0 !important;
}

/* Input Error State */
.input-error {
  border-color: #c0392b !important;
}

/* =========================================
   Form Actions
   ========================================= */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.price-display {
  border-left: 4px solid #e95420;
  padding: 8px 0 8px 12px;
}

.price-display-label {
  font-size: 1rem;
  color: #555;
}
.price-display-plan {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: bold;
  color: #e95420;
}

.price-display-value {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: bold;
  color: #e95420;
}

.price-display-total {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: bold;
  color: #e95420;
}

.price-display-prompt {
  display: none;
  margin-top: 2px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #e95420;
}

.price-display-note {
  padding-right: 160px;
  font-size: 0.75rem;
  color: #888;
}

.price-display-note-wrap {
  position: relative;
}

.price-display-note-clear {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 1;
}

.btn-reset {
  margin: 0 10px;
  padding: 8px 40px;
  border: none;
  border: 1px solid #ccc;
  background: #f6f6f6;
}

.btn-reset:hover {
  background-color: #eee;
}

.estimate-submit-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.btn-confirm {
  margin: 0 10px;
  padding: 8px 40px;
  border: none;
  border: 1px solid #ccc;
  background: #f6f6f6;
}

.btn-confirm:hover {
  background-color: #eee;
}

.estimate-guide {
  margin-top: 20px;
  padding: 14px 16px;
  background-color: #fff8f5;
  border: 1px solid #f2d4c7;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #444;
}

#dnn_ctr2060_ViewMailForm_repConfirm_ctl01_repCategory_ctl02_btnConfirmBack {
  margin: 0 10px;
    padding: 8px 40px;
    border: none;
    border: 1px solid #ccc;
    background: #f6f6f6;
}

#dnn_ctr2060_ViewMailForm_repConfirm_ctl01_repCategory_ctl02_btnConfirmBack:hover {
  background-color: #eee;
}

#dnn_ctr2060_ViewMailForm_repConfirm_ctl01_repCategory_ctl02_btnConfirmSend {
  margin: 0 10px;
  padding: 8px 40px;
  border: none;
  border: 1px solid #ccc;
  background: #f6f6f6;
}

#dnn_ctr2060_ViewMailForm_repConfirm_ctl01_repCategory_ctl02_btnConfirmSend:hover {
  background-color: #eee;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background-color: #333;
  color: #ccc;
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 640px) {
  .page-container {
    padding: 24px 16px;
  }

  .form-section {
    flex-direction: column;
    gap: 8px;
  }

  .form-label {
    flex: none;
    padding-top: 0;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .input-text,
  .input-number,
  .input-select {
    width: 100%;
  }

  .node-input-wrap {
    width: 100%;
  }

  .btn-reset {
    width: 100%;
  }

  .price-display-note {
    padding-right: 0;
  }

  .price-display-note-clear {
    width: auto;
    position: static;
    transform: none;
    margin-top: 8px;
  }

  .estimate-submit-actions {
    flex-direction: column;
  }

  .btn-confirm {
    width: 100%;
  }

  .support-spec-table th,
  .support-spec-table td {
    font-size: 0.82rem;
    padding: 8px;
  }
}
