/* -----------------------------
  기본 박스 설정
----------------------------- */
* {
  box-sizing: border-box;
}

/* body {
  width: 1200px;
  margin: 0 auto;
} */

input, select, textarea {
  background-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.frm1 {
  width: 900px;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.imgContainer {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  margin-top: -5px;
}

.img {
  border: none;
}

.img img {
  width: 100%;
}

.img1 {
  text-align: center;
  background-color: rgb(247, 240, 145);
  margin: 0 auto;
}

.img1 img {
  width: 100%;
}

.img1.hidden {
  display: none;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.overlay:not(.hidden) {
  display: flex;
}

.img2,
.img3 {
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.img2 {
  flex: 3;
  background-color: rgb(238, 144, 210);
}

.img3 {
  flex: 7;
  background-color: rgb(247, 240, 145);
}

.hidden, .hidden1, .hidden3 {
  display: none !important;
}

.propositionWrapper {
  position: absolute;
  top: 20%;
  left: 65%;
  transform: translate(-50%, -50%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  width: 80%;
  box-sizing: border-box;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  border: 2px solid #555;
}

.propositionTitle,
.propositionValues {
  display: flex;
  justify-content: space-around;
  width: 100%;
  gap: 50px;
  padding: 10px 0;
  text-align: center;
  white-space: nowrap;
  font-weight: bold;
}

.propositionTitle {
  margin-left: -20px;
}

.propositionValues input {
  flex: 1;
  width: 80%;
  height: 32px;
  font-size: 16px;
  text-align: right;
  padding-right: 10px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #fff;
  vertical-align: middle;
}

.blinking-message {
  position: absolute;
  top: 10px;
  left: 37%;
  transform: translateX(-50%);
  width: 50%;
  height: 20%;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  background: rgba(255, 255, 255);
  border-radius: 6px;
  animation: blink 1s step-start 7; 
  border: 1px solid black;
  display: flex;
  align-items: center;
}

.price-highlight {
  color: #d9534f;
  font-weight: bold;
  font-size: 2em;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.6);
  align-items: center; 
  border: none;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.text1 {
  position: absolute;
  bottom: 0;
  left: 80%;
  width: 200px;
  height: 100px;
  border: 3px solid hsl(271, 97%, 49%);
  background-color: rgb(252, 8, 8);
}

.topIn, .topOut {
  display: flex;
  justify-content: space-between;
  margin: 0 5px;
  border-left: 1px solid #555555;
  font-size: 12px;
}

.topIn {
  margin-top: 10px;
  height: 50px;
  line-height: 5px;
}

.topOut {
  border-bottom: 1px solid #555555;
  /* height: 80px; */
  /* background: #9e8355; */
  /* color: #ffffff; */
  height: 40px;
}

.com {
  flex: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
  border-right: 1px solid #555555;
  border-top: 1px solid #555555;
  text-align: center;
  padding: 10px 0;
  /* line-height: 20px; */
  height: auto;
  min-width: 0; 
}

.size { 
  display: block;
  flex: 0.7;
}

.comHint {
  display: block;
  font-size: 0.9em;
  color: #888;
}

.model { flex: 1; }

.base {
  flex: 0.9;
}

.color {
  flex: 0.9;
}

.molding {
  flex: 0.7;
}

.led {
  flex: 1.3;
}

.power {
  flex: 1.7;
}

/* .bigWords, .smallWords { flex: 1.8; } */


.wire { flex: 1.1; }

.uCount { flex: 0.5; }

#sum, #vat, #totalSum { 
  text-align: right;
  margin-right: 3px;
}

.price {
  flex: 0.7;
}

.comOut {
  justify-content: space-around;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
  border: 0; 
  min-width: 0;
  font-size: 11px;
  /* color: #ffffff; */
}

input::placeholder, textarea::placeholder {
  color: #000000;
  opacity: 1;
}

/* select option {
  background-color: #ffffff;
  color: #000000;
} */

.cal { float: right; 
  margin-top: 10px;
  margin-right: 5px;
}

.totalOutx {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.2em;
  font-weight: bold;
}

.retResult {
  margin: 60px 5px 0;
  border: 1px solid #5f5f5f;
  font-size: 0.8em;
}

#result {
  text-align: center;
  margin-top: 30px;
}

.topResult, .botResult {
  display: flex;
  justify-content: space-between;
  margin: 0 5px;
  border-left: 1px solid #555555;
}

.topResult {
  margin-top: 5px;
  border-bottom: 1px solid #555555;
}

.botResult {
  border-bottom: 1px solid #555555;
}

.comResult {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 0;
  border-right: 1px solid #555555;
  border-top: 1px solid #555555;
  min-width: 0;
}

.comResult input[type="checkbox"] {
  transform: scale(1.5);
  margin: 1px;
  appearance: checkbox;  /* 브라우저 기본 체크박스 유지 */
}

.oChk { flex: 0.5; }
.oSize {flex: 0.7;}
.oModel { flex: 1; }
.oBase {flex: 0.9;}
.oColor { flex: 0.9;}
.oMolding { flex: 0.7;}
.oLed {flex: 1.3;}
.oPower {flex: 1.7;}
/* .oBigWords, .oSmallWords{ flex: 2; } */
.oWire { flex: 1.1; }
.oCount { flex: 0.5; }
.oPrice {flex: 0.7;}
.comValue {
  justify-content: space-between;
  width: 100%;
  border: 0; 
  min-width: 0;
  text-align: center;
  font-size: 0.9em;
}

.oSum {
  text-align: right;
  padding-right: 3px;
}

.deleteTable {
  display: flex;
  justify-content: center;
  /* margin: 20px 0 10px; */
  padding: 20PX;
}

.deleteTable1, .deleteTable2 {
  margin: 0 50px;
}

.deleteTable1 input, .deleteTable2 input {
  padding: 5px 30Px;
}

.total { text-align: center; margin-bottom: 10px; }

.outx { 
  text-align: right;
  height: 30px;
  width: 80px;
  padding-right: 3px;
  /* border: solid 1px rgb(247, 120, 120); */
  border: none;
  color: red;
  font-size: 14x;
  font-weight: bold; 
}

.calOrder {
  width: 800px;
  margin: 10px auto 0 auto;
}

.calju {
  margin-top: 20px;
  text-align: center;
}

.juIn, .juOut, .juMemoIn, .juMemoOut {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #555;
  border-left: 1px solid #b0bcf5;
}

.juMemoOut {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid #555;
}

/* 1행, 2행 공통 */
.memoRow {
  display: flex;
  width: 100%;
}

/* 라벨 행 */
.labelRow div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background-color: #f2f2f2;
  border: 1px solid #ccc;
}

/* 입력 영역 */
.inputRow .requireInput,
.inputRow .fileUpInput {
  padding: 5px;
  border: 1px solid #ccc;
}
.inputRow .fileUpInput {
  border-right: 2px solid #ccc;
}

/* 비율 설정 */
.requireLabel, .requireInput {
  flex: 7;
}
.fileUpLabel, .fileUpInput {
  flex: 3;
}

/* 요구사항 textarea */
#orderMemo {
  width: 100%;
  height: 100px;
  padding: 10px;
  box-sizing: border-box;
  line-height: 1.4;
  resize: vertical;
}

/* 파일 입력 필드 */
#fileUp {
  width: 100%;
  margin: 5px 0 0 10px;
  box-sizing: border-box;
}

/* 주의: 중복 정의 제거한 공통 항목 */
.require, .fileUp, .juCom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 0;
  line-height: normal;
  text-align: center;
  border-right: 1px solid #555;
}

/* 주문 정보 라벨 */
.juCom {
  flex: 1;
  font-weight: bold;
  color: red;
}
.juCom.orderEmail {
  color: inherit;
  font-weight: normal;
}
.orderAdd {
  flex: 2;
}
.require {
  flex: 3;
}
.fileUp {
  flex: 1;
}

/* 공통 입력 필드 */
.outCom, #fileUp {
  width: 100%;
  border: 0;
  box-sizing: border-box;
  text-align: center;
  justify-content: space-around;
  align-items: center;
}

/* textarea placeholder 스타일 */
.centered-placeholder {
  height: 100px;
  padding: 10px;
  line-height: 80px;
}

/* 파일 목록 */
.file-container {
  width: 100%;
  max-width: 500px;
  padding: 5px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #fff;
  /* gap: 4px; */
   /* 파일 사이 간격 */
}

.file-container.hidden {
  display: none;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 3px 6px;
  margin: 2px 0;
  background-color: #f9f9f9;
  border-radius: 4px;
  width: 100%;
  font-size: 10px;
}

.file-item input[type="checkbox"] {
  margin-right: 10px;
}

.delete-x {
  color: red;
  cursor: pointer;
  margin-right: 8px;
  font-weight: bold;
  border: 1px solid red;
  padding: 1px 4px;
  border-radius: 50%;
  background-color: #ffe6e6;
  font-size: 10px;
  line-height: 1;
}

/* 메일 전송 버튼 */
/* .btnEmail {
  display: block;
  text-align: center;
  margin-top: 30px;
  padding-bottom: 30px;
} */

.btnEmail {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  padding-bottom: 30px;
  gap: 10px;
}

.btnEmail button {
  background-color: #007bff; /* 파란색 배경 */
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.btnEmail button:hover {
  background-color: #0056b3;
}

