/* Popup Form with PDF Download */
:root {
  --pfm-blue: #c0a47a;
  --pfm-blue-d: #a58d67;
  --pfm-green: #0d9f6e;
  --pfm-red: #e02424;
  --pfm-radius: 14px;
}

/* Button */
button.pfm-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  background-color: var(--pfm-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(160, 137, 43, 0.32);
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}
button.pfm-open-btn:hover {
  background-color: var(--pfm-blue-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(160, 137, 43, 0.32);
}
button.pfm-open-btn:active {
background-color: var(--pfm-blue-d);
  transform: none;
}
button.pfm-open-btn:focus {
background-color: var(--pfm-blue-d);
  transform: none;
}
button.iti__selected-country {
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border-radius: 0;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;
}
button.iti__selected-country:hover {  
    background: none;   
}
button.iti__selected-country:focus {  
    background: none;   
}
/* Overlay */
.pfm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(10, 12, 20, 0.55);
  backdrop-filter: blur(4px);
  z-index: 99998;
}
.pfm-overlay.pfm-show {
  display: block;
}

/* Modal */
.pfm-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(460px, calc(100vw - 28px));
  background-color: #fff;
  border-radius: var(--pfm-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  z-index: 99999;
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.22s;
  opacity: 0;
}
.pfm-modal.pfm-show {
  display: block;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Close X */
button.pfm-close-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #f3f4f6;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
button.pfm-close-x:hover {
  background-color: #e5e7eb;
  color: #111;
}

/* Panels */
.pfm-panel {
  padding: 38px 34px 32px;
}
.pfm-modal-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.pfm-panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}
.pfm-lead {
  margin: 0 0 22px;
  color: #6b7280;
  font-size: 14px;
}

/* Fields */
.pfm-field {
  margin-bottom: 14px;
}
.pfm-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.pfm-field label em {
  color: var(--pfm-blue);
  font-style: normal;
}
.pfm-field label span {
  font-weight: 400;
  color: #9ca3af;
}
.pfm-field input,
.pfm-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 13px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14.5px;
  color: #111;
  background-color: #fafafa;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  outline: none;
}
.pfm-field input:focus,
.pfm-field textarea:focus {
  border-color: var(--pfm-blue);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}
.pfm-field textarea {
  resize: vertical;
  min-height: 70px;
}

/* Error */
.pfm-error {
  display: none;
  margin: 0 0 12px;
  padding: 9px 13px;
  border-radius: 8px;
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: var(--pfm-red);
  font-size: 13.5px;
}
.pfm-error.pfm-show {
  display: block;
}

/* Submit */
button.pfm-submit {
  width: 100%;
  padding: 12px;
  background-color: var(--pfm-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}
button.pfm-submit:hover {
  background-color: var(--pfm-blue-d);
}
button.pfm-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.pfm-field select {
  width: 100%; box-sizing: border-box; padding: 9px 13px;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: 14.5px; color: #111; background: #fafafa;
  transition: border-color .15s, box-shadow .15s; outline: none;
  appearance: none;
  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='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}
.pfm-field select:focus {
  border-color: var(--pfm-blue); background-color: #fff;
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.pfm-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pfm-spin 0.7s linear infinite;
}
.pfm-loading .pfm-btn-label {
  display: none;
}
.pfm-loading .pfm-btn-spinner {
  display: block;
}

/* Thank-you */
.pfm-thanks {
  text-align: center;
  padding: 52px 34px 46px;
}
.pfm-check {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
}
.pfm-check svg {
  width: 100%;
  height: 100%;
}
.pfm-check circle {
  stroke: var(--pfm-green);
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: pfm-circle 0.55s ease 0.1s forwards;
}
.pfm-check path {
  stroke: var(--pfm-green);
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: pfm-tick 0.35s ease 0.6s forwards;
}
.pfm-thanks h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}
.pfm-thanks p {
  color: #6b7280;
  font-size: 14.5px;
  margin: 0 0 26px;
}
button.pfm-close-thanks {
  padding: 11px 28px;
  background-color: #f3f4f6;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
}
button.pfm-close-thanks:hover {
  background-color: #e5e7eb;
}

@keyframes pfm-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pfm-circle {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pfm-tick {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 500px) {
  .pfm-panel {
    padding: 30px 20px 26px;
  }
  .pfm-thanks {
    padding: 42px 20px 38px;
  }
}
