/* ============================================================================
   260803 견적 확정 전 필수 프로필 정보 입력 게이트 (sgax_profile_gate.js)
   ============================================================================ */

.profile-gate-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s ease;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.profile-gate-overlay.active {
  display: flex;
  opacity: 1;
}

.profile-gate-card {
  position: relative;
  width: 480px;
  max-width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-md, 12px);
  padding: 28px 24px 24px;
  box-sizing: border-box;
}

.profile-gate-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--text-secondary, #999);
  cursor: pointer;
}

.profile-gate-title {
  margin: 0 0 20px;
  font-size: var(--font-size-lg, 18px);
  font-weight: 700;
  text-align: center;
  color: var(--text-primary, #222);
}

.profile-gate-field {
  margin-top: 14px;
}

.profile-gate-field:first-of-type {
  margin-top: 0;
}

.profile-gate-label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--font-size-sm, 14px);
  font-weight: 500;
  color: var(--text-primary, #222);
}

.profile-gate-required {
  color: var(--primary, #ff5000);
}

.profile-gate-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  font-size: var(--font-size-base, 15px);
  font-family: inherit;
  box-sizing: border-box;
}

.profile-gate-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.profile-gate-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm, 14px);
  color: var(--text-primary, #222);
  cursor: pointer;
}

.profile-gate-business {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #eee);
}

.profile-gate-file-wrap {
  display: flex;
}

.profile-gate-file-label {
  position: relative;
  display: block;
  width: 90px;
  height: 90px;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  background-color: var(--bg-alt, #f8f8f8);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  box-sizing: border-box;
}

.profile-gate-file-label::after {
  content: '';
  position: absolute;
  top: calc(50% - 5px);
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  background-image: url(/images/ui/btn_more_bk.png);
}

.profile-gate-file-wrap input[type="file"] {
  display: none;
}

.profile-gate-phone-row {
  display: flex;
  gap: 10px;
}

.profile-gate-phone-row .profile-gate-input {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-gate-cert-btn {
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid var(--text-primary, #333);
  border-radius: 8px;
  background: #fff;
  font-size: var(--font-size-sm, 14px);
  white-space: nowrap;
  cursor: pointer;
}

.profile-gate-cert-input {
  margin-top: 10px;
}

.profile-gate-agree {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bg-alt, #f8f8f8);
  border-radius: 8px;
}

.profile-gate-agree-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--font-size-sm, 14px);
  color: var(--text-secondary, #666);
  cursor: pointer;
}

.profile-gate-agree-label input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
}

.profile-gate-agree-label a {
  color: var(--primary, #ff5000);
  text-decoration: underline;
}

.profile-gate-submit-btn {
  display: block;
  width: 100%;
  padding: 13px 24px;
  margin-top: 20px;
  border: none;
  border-radius: 8px;
  background: var(--primary, #ff5000);
  color: #fff;
  font-size: var(--font-size-base, 15px);
  font-weight: 600;
  cursor: pointer;
}

.profile-gate-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .profile-gate-card { padding: 22px 16px 18px; }
}
