/* Alfalah — Global Consultation Popup */

#consultPopupOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s;
}

#consultPopupOverlay.cp-open {
  opacity: 1;
}

#consultPopupBox {
  background: #0d0d0d;
  border: 1px solid rgba(201,168,76,0.32);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem 2rem 2rem;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8);
  transform: translateY(18px);
  transition: transform 0.28s cubic-bezier(0.2,0.8,0.3,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.2) transparent;
}

#consultPopupOverlay.cp-open #consultPopupBox {
  transform: translateY(0);
}

#consultPopupBox::-webkit-scrollbar { width: 3px; }
#consultPopupBox::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.2); }

#consultPopupClose {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: none;
  color: rgba(240,232,208,0.35);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}

#consultPopupClose:hover { color: rgba(201,168,76,0.85); }

.cp-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cp-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(201,168,76,0.4);
}

.cp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
  color: #f0e8d0;
  margin-bottom: 0.4rem;
}

.cp-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  color: rgba(240,232,208,0.45);
  letter-spacing: 0.06em;
  margin-bottom: 1.6rem;
  line-height: 1.5;
}

.cp-field {
  margin-bottom: 0.9rem;
}

.cp-field label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240,232,208,0.55);
  margin-bottom: 0.4rem;
}

.cp-field input:not([type=radio]),
.cp-field select,
.cp-field textarea {
  width: 100%;
  background: #111;
  border: 1px solid rgba(201,168,76,0.2);
  color: rgba(240,232,208,0.9);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
}

.cp-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(201%2C168%2C76%2C0.5)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.cp-field select option {
  background: #111;
  color: #f0e8d0;
}

.cp-field input::placeholder,
.cp-field textarea::placeholder { color: rgba(240,232,208,0.25); }

.cp-field input:focus,
.cp-field select:focus,
.cp-field textarea:focus { border-color: rgba(201,168,76,0.55); }

.cp-field textarea { resize: vertical; min-height: 70px; line-height: 1.5; }

.cp-hp { display: none !important; }

.cp-submit {
  width: 100%;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #8B6914 0%, #C9A84C 40%, #E8C97A 60%, #C9A84C 80%, #8B6914 100%);
  color: #080808;
  border: none;
  border-radius: 999px;
  padding: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.cp-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.cp-submit:active { transform: scale(0.97); }
.cp-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.cp-wa-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.75rem;
  border: 1px solid rgba(37,211,102,0.25);
  background: rgba(37,211,102,0.05);
  color: #25D366;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}

.cp-wa-link:hover { background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.45); }

.cp-wa-link svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.cp-note {
  margin-top: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.54rem;
  color: rgba(240,232,208,0.28);
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-align: center;
}

.cp-note a { color: rgba(201,168,76,0.6); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,0.25); }

/* Success state */
#consultPopupSuccess {
  text-align: center;
  padding: 1.5rem 0.5rem 1rem;
}

.cp-success-icon {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(201,168,76,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.cp-success-icon svg {
  width: 24px;
  height: 24px;
  stroke: #C9A84C;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cp-success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: #f0e8d0;
  margin-bottom: 0.5rem;
}

.cp-success-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  color: rgba(240,232,208,0.5);
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.cp-success-close {
  margin-top: 1.5rem;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  transition: color 0.2s;
}

.cp-success-close:hover { color: rgba(201,168,76,1); }

/* Error message */
.cp-error {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  color: #e07b7b;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
  display: none;
}

/* Mobile */
@media (max-width: 540px) {
  #consultPopupBox { padding: 2rem 1.3rem 1.5rem; }
}


/* Previous Refusal radio group */
.cp-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 0.35rem;
}
.cp-radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(240,232,208,0.65);
  cursor: pointer;
}
.cp-radio-label input[type=radio] {
  accent-color: #C9A84C;
  width: auto;
  padding: 0;
  background: none;
  border: none;
}
