/* Inquiry Page Specific Styles */

.inquiry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto auto auto auto;
    width: calc(var(--scale-factor, 2) * 375px);
    max-width: 100vw;
    margin: 0 auto;
    position: relative;
    gap: 20px;
    box-sizing: border-box;
}


.inquiry-header {
    grid-row: 2;
    grid-column: 1 / 7;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 10;
}

.inquiry-header img {
    width: 70%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: flex;
    align-items: flex-start;
}

.inquiry-form-container {
    grid-row: 3;
    grid-column: 2 / 6;
    background: rgba(255, 121, 205, 1);
    border-radius: 0;
    padding: 40px 24px 24px 24px;
    margin: 0;
    z-index: 10;
    font-family: Computer, 'VT323', monospace;
    font-size: calc(var(--text-scale-factor) * 19.96px);
    color: #000;
    text-align: left;
}

.inquiry-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
    width: 100%;
    font-size: 1em;
    padding: 8px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Computer, 'VT323', monospace;
    background: #fff;
    color: #000;
    box-sizing: border-box;
}

/* Style console dropdown to match multiselect */
.console-select {
    padding: 2px 5px 0px 5px;
    border: solid 1px #ced4da;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    min-height: 32px;
}

.inquiry-form textarea {
    resize: vertical;
    min-height: 60px;
}

.inquiry-form button {
    background: #ff7acd;
    color: #000;
    font-family: Computer, 'VT323', monospace;
    font-size: clamp(28px, 3.5vw, 48px);
    border: none;
    border-radius: 4px;
    padding-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: auto;
    display: block;
}

.inquiry-form button:hover {
    background: #d55fcf;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .inquiry-form-container {
        grid-column: 1 / 7;
        padding: 20px 15px;
        font-size: max(18px, calc(var(--text-scale-factor) * 19.96px));
    }
    
    .inquiry-form label {
        font-size: max(16px, 1em);
    }
    
    .inquiry-form input,
    .inquiry-form textarea {
        font-size: max(16px, 1em);
    }
    
}

/* =====================
   FORM STYLES REGION
   ===================== */
.personal-info-section {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  margin-bottom: 1.5em;
}
.service-fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  margin-bottom: 0.1em;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.console-header label {
  margin: 0;
}

.remove-console {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: max(24px, calc(var(--text-scale-factor) * 36px));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}

.remove-console:hover {
  background: #cc0000;
}
.console-other,
.mod-other,
.maintenance-other {
  display: none;
}
.console-other.show,
.mod-other.show,
.maintenance-other.show {
  display: block;
}
.add-another-wrapper {
  display: flex;
  align-items: center;
}

.add-another-console {
  background: #4444ff;
  color: white;
  border: none;
  font-size: max(14px, calc(var(--text-scale-factor) * 6px));
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: Arial, sans-serif;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  margin-left: 0;
  width: 100%;
}

.add-another-console:hover {
  background: #0000cc;
}

.mod-select {
  width: 100%;
  box-sizing: border-box;
}
/* =====================
   END FORM STYLES REGION
   ===================== */

/* Custom Modal Styles */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #ff7acd;
  border-radius: 8px;
  padding: 24px;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-family: Computer, 'VT323', monospace;
  color: #000;
  text-align: center;
}

.modal-message {
  font-size: clamp(18px, 3vw, 24px);
  margin-bottom: 20px;
  line-height: 1.4;
  text-align: left;
}

.modal-button {
  background: #000;
  color: #ff7acd;
  border: none;
  border-radius: 4px;
  padding: 5px 15px;
  font-family: Computer, 'VT323', monospace;
  font-size: clamp(32px, 5vw, 40px);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-button:hover {
  background: #333;
  transform: translateY(-1px);
}

.multiselect-dropdown-list {
  padding: 2px;
  max-height: 12em;
  height: auto !important;
  overflow-y: auto;
  overflow-x: hidden;
}

.multiselect-dropdown-list label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
}

.multiselect-dropdown-list > div {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.multiselect-dropdown-list input[type="checkbox"] {
  display: none;
}
.multiselect-dropdown-list > div.checked {
  background-color: #ffe066;
  font-weight: bold;
}

.multiselect-dropdown-list > div.checked::after {
  content: '✔';
  color: #2ecc40;
  font-size: 1.1em;
  margin-left: auto;
  padding-left: 0.5em;
}

/* Fix font for multiselect remove button */
.multiselect-dropdown .optdel {
  font-family: Computer, 'VT323', monospace !important;
}

.multiselect-dropdown {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

.dashed-divider {
  border: none;
  border-top: 2px dashed #000000;
  width: 100%;
}