/**** 로딩 스피너 설정 ****/
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #18525e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/**** payment.html 페이지 ****/
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

section {
    flex: 1 0 auto;
  padding: 170px 20px 80px;
  box-sizing: border-box;
    word-break: keep-all;
    height: auto;
    min-height: 0;
}

.paymentContainer {
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #195461;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.divider {
  height: 2px;
  background-color: #ddd;
  margin-bottom: 35px;
}

.instruction {
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.5;
}

.instruction p {
  font-size: 1.4rem;
}

.formGroup,
.fieldGroup {
  margin-bottom: 35px;
}

.formLabel,
.fieldLabel {
  font-size: 1.6rem;
  font-weight: 600;
  color: #195461;
  margin-bottom: 12px;
  display: block;
}

.inputWrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.inputWrapper input {
  width: 100%;
  padding-right: 35px;
}

.currencySuffix {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #555;
  pointer-events: none;
  display: none;
}

/* 금액 추가 버튼 css */
.amountButtons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.amountBtn, .resetBtn {
    flex: 1;
    min-width: calc(25% - 6px);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1.4rem;
}

.amountBtn {
    background-color: #f0f7ff;
}

.amountBtn:hover {
    background-color: #e5f4fb;
}

.resetBtn {
    background-color: #e74c3c;
}

.resetBtn:hover {
    background-color: #cd4235;
}

#memoGuide {
  font-size: 1.4rem;
  color: #195461;
  font-weight: 500;
}

select, input, textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.4rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.3s ease;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
}

select:hover, input:hover, textarea:hover, textarea:focus {
    border-color: #b8bfc8;
    outline: none;
}

textarea {
  min-height: 115px;
  resize: vertical;
  font-family: inherit;
}

.submitBtn {
  width: 100%;
  padding: 20px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  background-color: #195461;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
    margin-top: 10px;
  letter-spacing: 2px;
}

.submitBtn:hover {
  background-color: #144652;
}

/* 결제 완료 페이지 관련 추가 설정 */
.fieldGroup {
    display: flex;
    justify-content: space-between;
}

.thinDivider {
    height: 1px;
    background-color: #ddd;
    margin-bottom: 35px;
}

.completedValue {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: block;
}