.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  /* backdrop-filter: blur(20px); */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  /* background: rgba(255, 255, 255, 0.95); */
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* width: 90%; */
  max-width: 520px;
  min-width: 420px;
  /* max-height: 90vh; */
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: scale(1) translateY(0);
  position: relative;
}

.modal-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 32px 32px 24px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.modal-title {
  font-size: 24px;
  font-weight: 500;
  color: #1e293b;
  letter-spacing: -0.06em;
}

.modal-subtitle {
  font-size: 14px;
  color: #64748b;
  font-weight: 400;
}

.modal-body {
  padding: 0;
  max-height: calc(90vh - 200px);
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.content-section {
  padding: 24px 32px;
}

.plan-summary {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  /* padding: 24px 0; */
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.plan-summary-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* .plan-summary-title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #6366f1;
  border-radius: 50%;
} */

.plan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.plan-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.plan-item-label {
  font-size: 16px;
  color: #64748b;
  font-weight: 500;
}

.plan-item-value {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.total-price {
  background: var(--primary-color);
  color: white;
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  text-align: center;
}

.total-price-label {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 500;
}

.total-price-value {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.total-price-value b {
  font-weight: 600;
  font-family: "Montserrat";
}

.modal .section-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* .modal .section-title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #8b5cf6;
  border-radius: 50%;
} */

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.form-input:focus {
  outline: none;
  border-color: #6366f1;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.phone-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.phone-prefix {
}

.phone-prefix select {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  font-size: 15px;
  color: #6b7280;
  font-weight: 600;
}

.phone-input {
  flex: 1;
}

.privacy-notice {
  background: var(--bg-100);
  border: 1px solid rgba(224, 242, 254, 0.8);
  border-radius: 4px;
  padding: 20px;
  margin: 24px 0;
  backdrop-filter: blur(10px);
}

.privacy-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.privacy-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}

.custom-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.custom-checkbox input {
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.checkbox-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.custom-checkbox input:checked + .checkbox-mark {
  background: #6366f1;
  border-color: #6366f1;
  transform: scale(1.05);
}

.custom-checkbox input:checked + .checkbox-mark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label {
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  line-height: 1.5;
  font-weight: 500;
}

.customer-info-section {
  margin-top: 48px;
}

.modal-footer {
  padding: 24px 32px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  display: flex;
  gap: 12px;
}

.btn {
  flex: 1;
  height: auto;
  line-height: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.btn-cancel {
  background: #fff;
  color: #64748b;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-cancel:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-submit {
  background: var(--primary-color);
  color: white;
}

.btn-submit:hover {
  transform: translateY(-2px);
}

.btn-submit:disabled {
  background: #eee;
  transform: none;
  cursor: not-allowed;
  color: #64748b;
}

.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}

.benefit-notice {
  background: var(--bg-100);
  border: 1px solid rgba(224, 242, 254, 1);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  font-size: 15px;
  color: #374151;
  letter-spacing: -0.04em;
}

.benefit-notice strong {
  color: var(--primary-color);
}

.button-group {
  display: flex;
  gap: 10px;
}

.button-group input[type="radio"] {
  display: none;
}

.option-button {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  color: #333;
  background-color: #fff;
}

.option-button:hover {
  border-color: #666;
}

.button-group input[type="radio"]:checked + .option-button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
}

@media (max-width: 640px) {
  .modal {
    margin: 0 auto;
    width: calc(100% - 0);
    min-width: auto;
    border-radius: 20px;
  }

  .modal-header {
    padding: 24px 24px 20px;
  }

  .modal-title{
    font-size: 20px;
  }

  .close-btn{
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .content-section {
    padding: 20px 24px;
  }

  .total-price-value{
    font-size: 20px;
    font-weight: 600;
  }

  .modal-footer {
    padding: 20px 24px 24px;
    flex-direction: column;
  }

  .modal-footer .btn {
    position: relative;
  }

  .modal-footer .btn span{
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    background: #ffc000;
    padding: 5px 10px;
    color: #000000;
    border-radius: 20px;
    white-space: nowrap;
    /* border: 1px solid #333; */
  }

  .plan-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
