/* =========================
   CONTACT PAGE ONLY
========================= */
.contact-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 91, 255, 0.10), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(79, 123, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #060606 0%, #0b0b0b 45%, #070707 100%);
  color: #fff;
  overflow-x: hidden;
}

.contact-page section + section {
  margin-top: 0;
}

/* =========================
   HERO
========================= */

.contact-page .contact-hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 132px 5% 14px;
  position: relative;
  background: none;
}

.contact-page .contact-hero::before {
  display: none;
}

.contact-page .contact-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}

/* =========================
   MESSAGE
========================= */

.contact-page .contact-message-section {
  padding: 0 8% 18px;
}

.contact-page .contact-message-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-page .contact-message-inner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  word-break: keep-all;
}

.contact-page .contact-message-inner strong {
  color: #fff;
  font-weight: 800;
}

/* =========================
   FORM LAYOUT
========================= */

.contact-page .contact-form-section {
  padding: 0 8% 70px;
}

.contact-page .contact-layout {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(235px, 0.64fr);
  gap: 18px;
  align-items: stretch;
}

.contact-page .contact-card,
.contact-page .contact-info-box {
  min-width: 0;
  height: auto;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  backdrop-filter: blur(14px);
}

/* =========================
   FORM CARD
========================= */

.contact-page .contact-card {
  padding: 18px 18px;
}

.contact-page .form-title {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
}

.contact-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-page .form-group {
  min-width: 0;
}

.contact-page .form-group.full,
.contact-page .submit-btn.full,
.contact-page .privacy.full {
  grid-column: 1 / -1;
}

.contact-page .form-group label,
.contact-page .privacy label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.contact-page .form-group input,
.contact-page .form-group textarea,
.contact-page .select-trigger {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #fff;
  border-radius: 14px;
  outline: none;
  transition: 0.25s ease;
  box-sizing: border-box;
}

.contact-page .form-group input,
.contact-page .select-trigger {
  min-height: 42px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.contact-page .form-group textarea {
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
  font-size: 0.84rem;
  line-height: 1.55;
}

.contact-page .form-group input::placeholder,
.contact-page .form-group textarea::placeholder,
.contact-page .select-trigger {
  color: rgba(255,255,255,0.48);
}

.contact-page .form-group input:focus,
.contact-page .form-group textarea:focus,
.contact-page .custom-select.open .select-trigger {
  border-color: rgba(45,91,255,0.75);
  box-shadow: 0 0 0 4px rgba(45,91,255,0.12);
  background: rgba(255,255,255,0.055);
}

/* =========================
   CUSTOM SELECT
========================= */

.contact-page .custom-select {
  position: relative;
  z-index: 10;
}

.contact-page .select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.contact-page .select-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255,255,255,0.7);
  border-bottom: 2px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
  margin-left: 12px;
  transition: 0.25s ease;
  flex-shrink: 0;
}

.contact-page .custom-select.open .select-trigger::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.contact-page .select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  padding: 6px;
  border-radius: 14px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
  z-index: 30;
  max-height: 280px;
  overflow-y: auto;
}

.contact-page .custom-select.open .select-options {
  display: block;
}

.contact-page .option {
  padding: 11px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.86);
  font-size: 0.88rem;
  line-height: 1.45;
  cursor: pointer;
  transition: 0.2s ease;
}

.contact-page .option:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* =========================
   PRIVACY / SUBMIT
========================= */

.contact-page .privacy {
  margin-top: 0;
}

.contact-page .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
  cursor: pointer;
}

.contact-page .checkbox input {
  margin-top: 2px;
  accent-color: #2d5bff;
}

.contact-page .submit-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #2d5bff 0%, #4f7bff 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 18px 40px rgba(45,91,255,0.22);
}

.contact-page .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(45,91,255,0.28);
}

.contact-page .submit-btn.loading {
  opacity: 0.8;
  pointer-events: none;
}

.contact-page .submit-btn.success {
  background: linear-gradient(90deg, #3f6bff 0%, #6f92ff 100%);
  color: #fff;
}

/* =========================
   INFO BOX
========================= */

.contact-page .contact-info-box {
  position: relative;
  top: auto;
  padding: 18px 16px;
}

.contact-page .contact-info-box h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.contact-page .info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contact-page .info-item:last-of-type {
  margin-bottom: 14px;
}

.contact-page .info-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(45,91,255,0.12);
  border: 1px solid rgba(45,91,255,0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-page .info-icon svg {
  width: 17px;
  height: 17px;
  stroke: #4f7bff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-page .info-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.88rem;
  color: #fff;
}

.contact-page .info-item p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
  word-break: keep-all;
}

.contact-page .info-note {
  margin: 65px 0 12px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.62);
}

.contact-page .info-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.contact-page .info-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  transition: 0.25s ease;
}

.contact-page .phone-btn {
  background: linear-gradient(90deg, #2d5bff 0%, #4f7bff 100%);
  border: 1px solid #2d5bff(255,255,255,0.1);
  color: #fff;
}

.contact-page .phone-btn:hover {
  background: #2d5bff;
}

.contact-page .kakao-btn {
  background: #FEE500;
  color: #111;
  border: 1px solid rgba(254, 229, 0, 0.92);
}

.contact-page .kakao-btn:hover {
  background: #ffea1f;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(254, 229, 0, 0.22);
}

/* =========================
   POPUP
========================= */

.contact-page .popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 10000;
}

.contact-page .popup.show {
  opacity: 1;
  visibility: visible;
}

.contact-page .popup-box {
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 34px 26px 24px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0,0,0,0.34);
}

.contact-page .popup-box p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.7;
  color: #fff;
}

.contact-page .popup-box button {
  min-width: 120px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #2d5bff 0%, #4f7bff 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* =========================
   FOOTER
========================= */

.contact-page .footer-simple {
  padding: 40px 20px 60px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.contact-page .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-page .footer-simple p {
  margin: 8px 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.62);
}

.contact-page .footer-simple a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.contact-page .footer-simple a:hover {
  color: #fff;
}

.contact-page .copyright strong {
  color: #fff;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {
  .contact-page .contact-layout {
    grid-template-columns: 1fr;
    max-width: 720px;
    gap: 18px;
  }

  .contact-page .contact-info-box {
    position: static;
    top: auto;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .contact-page .contact-hero {
    padding: 120px 20px 24px;
  }

  .contact-page .contact-hero h1 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .contact-page .contact-message-section {
    padding: 0 20px 18px;
  }

  .contact-page .contact-message-inner p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .contact-page .contact-form-section {
    padding: 0 20px 90px;
  }

  .contact-page .contact-layout {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
  }

  .contact-page .contact-card,
  .contact-page .contact-info-box {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .contact-page .form-title,
  .contact-page .contact-info-box h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .contact-page .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-page .form-group input,
  .contact-page .select-trigger {
    min-height: 46px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .contact-page .form-group textarea {
    min-height: 88px;
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .contact-page .form-group label,
  .contact-page .privacy label {
    font-size: 0.82rem;
    margin-bottom: 6px;
  }

  .contact-page .submit-btn {
    min-height: 44px;
    font-size: 0.86rem;
  }

  .contact-page .info-item {
    gap: 10px;
    padding: 12px 0;
  }

  .contact-page .info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .contact-page .info-icon svg {
    width: 17px;
    height: 17px;
  }

  .contact-page .info-item strong {
    font-size: 0.86rem;
  }

  .contact-page .info-item p,
  .contact-page .info-note,
  .contact-page .footer-simple p {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .contact-page .info-btn {
    min-height: 44px;
    font-size: 0.84rem;
    border-radius: 12px;
  }

  .contact-page .popup-box {
    max-width: 100%;
    border-radius: 18px;
    padding: 28px 18px 20px;
  }

  .contact-page .popup-box p {
    font-size: 0.92rem;
  }
}



/* =========================
   CUSTOM SELECT IMPROVED
========================= */

.contact-page .custom-select{
position:relative;
}

.contact-page .select-trigger{
display:flex;
align-items:center;
justify-content:space-between;

padding:12px 14px;
border-radius:14px;

background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.08);

cursor:pointer;
transition:0.25s;
}

.contact-page .select-trigger:hover{
border-color:#2d5bff;
}

.contact-page .select-options{

position:absolute;
top:calc(100% + 10px);
left:0;
right:0;

background:#0c0c0c;

border-radius:16px;
border:1px solid rgba(255,255,255,0.08);

padding:6px;

box-shadow:0 20px 60px rgba(0,0,0,0.6);

display:none;
max-height:260px;
overflow-y:auto;

}

.contact-page .custom-select.open .select-options{
display:block;
}

.contact-page .option{

padding:12px 14px;
border-radius:10px;

font-size:14px;

color:rgba(255,255,255,0.85);

cursor:pointer;

transition:0.2s;
}

.contact-page .option:hover{

background:rgba(45,91,255,0.15);
color:#fff;

}

.contact-page .option.active{
background:#2d5bff;
color:#fff;
box-shadow:0 6px 20px rgba(45,91,255,0.35);
}

.contact-page .select-options::-webkit-scrollbar{
width:5px;
}

.contact-page .select-options::-webkit-scrollbar-thumb{
background:#6f7383;
border-radius:10px;
}

.contact-page .select-options::-webkit-scrollbar-track{
background:transparent;
}

/* 카드 hover 효과 */

.contact-page .contact-card{
backdrop-filter: blur(20px);
border:1px solid rgba(255,255,255,0.08);
}

.contact-page .contact-card:hover{
border-color:rgba(45,91,255,0.4);
}