:root {
    --js-bg: #EDEDED;
    --js-header-bg: #2b2b2b;
    --js-primary: #008374;
      --primary: #265f5c;
    --js-primary-soft: #0aa790;
    --js-primary-dark: #026655;
    --js-accent: #F6B925;
    --js-card-bg: #ffffff;
    --js-chip-bg: #f9fafb;
    --js-border: #dddddd;
      --black: #332f2f;
    --js-border-soft: #e5e7eb;
    --js-text-main: #1f2937;
    --js-text-muted: #6b7280;
    --yellow: #f6bb26;
    --teal-light: #026655;
    /* px ? em converted */
    --radius-lg: 1em;
    /* 16px */
    --radius-md: 0.875em;
    /* 14px */
    --radius-pill: 62.4375em;
    /* 999px */
    --shadow-soft: 0 0.125em 0.375em rgba(15, 23, 42, .05);
    --shadow-hover: 0 0.625em 1.5625em rgba(15, 23, 42, .16);
    --font-main: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --ui-scaling: 0.8333vw;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

#topLoader {
    position: fixed;
    top: 0;
    left: 0;
    height: 0.4em;
    width: 0%;
    background: var(--yellow);
    z-index: 999999;
    transition: width 0.4s ease;
}

.custom-scale-wrapper {
    font-size: var(--ui-scaling);
    width: 100%;
}

@media (max-width: 1000px) {
    .custom-scale-wrapper {
        font-size: 10px;
    }
}

@media (min-width: 7680px) {
    .custom-scale-wrapper {
        font-size: 64px;
    }
}

.ico {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.ico {
    font-size: 1em;
    line-height: 1;
}


html,
body {
    height: 100%
}


body {
    font-family: var(--font-main);
    background: var(--js-bg);
    color: var(--js-text-main);
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit
}






/* ================= CARD ================= */

.profile-card {
    background: var(--js-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    max-width: 50em;
    margin: auto;
    margin-top: 3rem;
}

.profile-card .profile-card-header {
    padding: 1em 2em;
    border-radius: 1em 1em 0 0;
    background: #313131;
    color: white
}
.profile-card h2{
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
    color: white;
}
.profile-card h4{
    font-size: 1.5em;
    font-weight: 900;
    color: var(--js-text-main);
    margin-bottom: .5em;
}
.profile-content {
    padding: 2em;
}

body:not(.profile-data-ready) .profile-card {
    display: none !important;
}

.profile-page-load-skeleton {
    display: none;
    max-width: 50em;
    margin: 3rem auto 2rem;
    background: var(--js-card-bg);
    border: 1px solid #d8e5e2;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

body:not(.profile-data-ready) .profile-page-load-skeleton {
    display: block !important;
}

body.profile-data-ready .profile-page-load-skeleton {
    display: none !important;
}

.profile-skel-header {
    padding: 1em 2em;
    background: #313131;
}

.profile-skel-content {
    padding: 2em;
}

.profile-skel-section {
    margin-bottom: 1.4em;
}

.profile-skel-line,
.profile-skel-pill,
.profile-skel-field span,
.profile-skel-field strong,
.profile-skel-button {
    display: block;
    overflow: hidden;
    background: linear-gradient(90deg, #dfe9e6 0%, #eef5f3 42%, #dfe9e6 78%);
    background-size: 240% 100%;
    border-radius: 999px;
    animation: profileSkeletonShimmer 1.25s ease-in-out infinite;
}

.profile-skel-title {
    width: 9.5em;
    height: 1.6em;
}

.profile-skel-label {
    width: 7.5em;
    height: 1.25em;
    margin-bottom: .8em;
}

.profile-skel-choice-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85em;
}

.profile-skel-pill {
    height: 2.8em;
    border-radius: .9em;
}

.profile-skel-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1em 1em;
}

.profile-skel-field {
    min-width: 0;
}

.profile-skel-field-wide {
    grid-column: 1 / -1;
}

.profile-skel-field span {
    width: 44%;
    height: 1em;
    margin-bottom: .45em;
}

.profile-skel-field strong {
    width: 100%;
    height: 3.05em;
    border-radius: .75em;
}

.profile-skel-company {
    margin-top: 1.7em;
}

.profile-skel-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75em;
    margin-top: 1.8em;
}

.profile-skel-button {
    width: 8.5em;
    height: 2.9em;
    border-radius: .8em;
}

.profile-skel-button-alt {
    width: 6.5em;
}

@keyframes profileSkeletonShimmer {
    0% {
        background-position: 120% 0;
    }
    100% {
        background-position: -120% 0;
    }
}

/* ================= FORM GROUP ================= */

.form-group {
    margin-bottom: 1.1em;
}

label {
font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 0.3em;
  display: block;
  color: var(--black);
}


/* ================= INPUT ================= */

input,
select {
 width: 100%;
  padding: 0.85em 1em;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75em;
  font-size: 1.1em;
  outline: none;
}


input:focus {
    outline: none;
    border-color: var(--primary);
}

input:disabled,
input.is-locked {
    background: #f3f6f8;
    color: #64748b;
    cursor: not-allowed;
}

select:disabled,
select.is-locked {
    background: #f3f6f8;
    color: #64748b;
    cursor: not-allowed;
}

textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75em;
  font-size: 1.1em;
  outline: none;
  resize: vertical;
  font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.public-url-field {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.public-url-prefix {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0.85em 1em;
    border: 1.5px solid #e2e8f0;
    border-right: 0;
    border-radius: 0.75em 0 0 0.75em;
    background: #f8fafc;
    color: #475569;
    font-size: 1.1em;
    font-weight: 700;
    white-space: nowrap;
}

.public-url-field input {
    min-width: 0;
    flex: 1 1 auto;
    border-radius: 0 0.75em 0.75em 0;
}

.profile-url-preview,
.profile-field-hint {
    margin-top: .35em;
    color: #64748b;
    font-size: .92em;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.profile-url-preview {
    color: var(--js-primary);
    font-weight: 700;
}

input[type="radio"] {
    width: 1.15em;
    height: 1.15em;
    accent-color: var(--js-primary);
}

.extra-details-toggle {
    margin-top: .35em;
}

.template-checkbox {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: .55em;
    cursor: pointer;
    user-select: none;
    font-size: 1.05em;
}

.template-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.template-checkbox-box {
    width: 1em;
    height: 1em;
    display: inline-grid;
    place-items: center;
    border: 1.5px solid #d7dde4;
    border-radius: .18em;
    background: #fff;
    color: #fff;
    transition: background .15s ease, border-color .15s ease;
}

.template-checkbox input:checked + .template-checkbox-box {
    border-color: #d46f35;
    background: #d46f35;
}

.template-checkbox input:checked + .template-checkbox-box::after {
    content: "";
    width: .5em;
    height: .28em;
    border-left: .14em solid #fff;
    border-bottom: .14em solid #fff;
    transform: rotate(-45deg) translate(.02em, -.02em);
}

.template-checkbox input:focus-visible + .template-checkbox-box {
    outline: 2px solid rgba(212, 111, 53, .25);
    outline-offset: 2px;
}

.whatsapp-contact-group {
    padding: .9em 1em;
    border: 1.5px solid #e2e8f0;
    border-radius: .9em;
    background: #fbfefd;
}

.whatsapp-mode-group {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: .8em 1.4em;
}

.whatsapp-mode-group label {
    margin-bottom: 0;
    line-height: 1.35;
}

.whatsapp-yes-details {
    margin-top: .85em;
    padding-top: .85em;
    border-top: 1px solid #e2e8f0;
}

.whatsapp-number-field {
    margin-top: .85em;
}

.city-suggest-wrap {
    position: relative;
}

.city-suggestions {
    position: absolute;
    z-index: 30;
    top: calc(100% + .35em);
    left: 0;
    right: 0;
    display: none;
    max-height: 15em;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d8e2e8;
    border-radius: .75em;
    box-shadow: 0 .8em 2em rgba(15, 23, 42, .14);
}

.city-suggestions.is-open {
    display: block;
}

.city-suggestion-item {
    width: 100%;
    border: 0;
    background: #fff;
    color: var(--js-text-main);
    display: block;
    text-align: left;
    padding: .75em 1em;
    font: inherit;
    cursor: pointer;
}

.city-suggestion-item:hover,
.city-suggestion-item:focus {
    background: #f2faf8;
    outline: 0;
}

/* ================= RADIO ================= */
.radio-group{
    display: flex;
    align-items: center;
    gap: 2em;
}
.radio-group label {
    font-weight: normal;
    display: flex;
    gap: .5em;
}

.radio-group label {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 0.3em;
  display: block;
  color: var(--black);
  display: flex;
  gap: .5em;
  align-items: center;
}


/* ================= TOOLTIP ================= */

.info {
    display: inline-block;
    color: white;
    text-align: center;
    border-radius: 50%;
    color: var(--js-primary);
    font-size: .8em;
    cursor: pointer;
    position: relative;
    margin-left: .1em;
}


.info:hover::after {
    content: attr(data-info);
    position: absolute;
    background: black;
    color: white;
    padding: .5em;
    border-radius: .4em;
    white-space: nowrap;
    top: -1.5em;
    left: 1.5em;
    font-size: .8em;
}
.form-group .info{
    font-size: 1em;
}

/* ================= HIDE ================= */

.hidden {

    display: none;

}
.error-message {

color:#ff4444;

font-size:.9em;

display:none;

margin-top:.3em;

}


.error-message.show {

display:block;

}


input.error,
select.error{

border-color:#ff4444;

}

/* ================= BUTTON ================= */
.btn.btn-primary {
    padding: 1em 2em;
    border: none;
    border-radius: 3em;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    cursor: pointer;
    transition: 0.16s;
    white-space: nowrap;
    box-shadow: 0 0.625em 1.375em rgba(15, 23, 42, .22);
    background: var(--teal-light);
    color: #fff;
    box-shadow: 0 0.25em 1em rgba(38, 95, 92, 0.3);
    display: block;
    margin: auto;
}

button:hover {
    transform: translateY(-0.2em);
    opacity: 0.9;
    background: var(--teal-light);
}

.danger-zone {
    margin-top: 2em;
    padding: 1.25em;
    border: 1px solid rgba(220, 38, 38, .2);
    border-radius: 1em;
    background: #fff7f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

.danger-zone h3 {
    margin: 0 0 .25em;
    color: #991b1b;
    font-size: 1.05em;
}

.danger-zone p {
    margin: 0;
    color: #7f1d1d;
    font-size: .92em;
}

.btn-delete-account,
.btn-confirm-delete,
.btn-cancel-delete {
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45em;
    white-space: nowrap;
}

.btn-delete-account,
.btn-confirm-delete {
    background: #dc2626;
    color: #fff;
    padding: .85em 1.25em;
}

.btn-cancel-delete {
    background: #eef2f7;
    color: #263238;
    padding: .85em 1.25em;
}

.delete-account-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25em;
    background: rgba(10, 20, 18, .62);
}

.delete-account-modal.is-open {
    display: flex;
}

.delete-account-dialog {
    width: min(100%, 30em);
    position: relative;
    background: #fff;
    border-radius: 1em;
    padding: 1.75em;
    box-shadow: 0 1em 3em rgba(0, 0, 0, .25);
}

.delete-account-close {
    position: absolute;
    top: .9em;
    right: .9em;
    width: 2.25em;
    height: 2.25em;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #263238;
    cursor: pointer;
}

.delete-account-icon {
    width: 3em;
    height: 3em;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fee2e2;
    color: #dc2626;
    font-size: 1.35em;
    margin-bottom: 1em;
}

.delete-account-dialog h3 {
    margin: 0 0 .45em;
    color: #111827;
}

.delete-account-dialog p {
    margin: 0 0 1em;
    color: #5f6c7b;
}

.delete-account-dialog label {
    display: block;
    font-weight: 700;
    margin-bottom: .45em;
}

.delete-account-dialog input {
    width: 100%;
    padding: .9em 1em;
    border: 1px solid #d8e2e8;
    border-radius: .75em;
    outline: 0;
}

.delete-account-error {
    min-height: 1.25em;
    margin-top: .55em;
    color: #dc2626;
    font-size: .9em;
}

.delete-account-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75em;
    margin-top: 1.1em;
}

.profile-success-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25em;
    background: rgba(10, 20, 18, .62);
}

.profile-success-modal.is-open {
    display: flex;
}

.profile-success-dialog {
    width: min(100%, 28em);
    position: relative;
    text-align: center;
    background: #fff;
    border-radius: 1em;
    padding: 2em 1.75em 1.6em;
    box-shadow: 0 1em 3em rgba(0, 0, 0, .25);
}

.profile-success-close {
    position: absolute;
    top: .9em;
    right: .9em;
    width: 2.25em;
    height: 2.25em;
    border: 0;
    border-radius: 50%;
    background: #eef7f5;
    color: #263238;
    cursor: pointer;
}

.profile-success-icon {
    width: 3.4em;
    height: 3.4em;
    margin: 0 auto 1em;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #dff7ed;
    color: #087765;
    font-size: 1.35em;
}

.profile-success-dialog h3 {
    margin: 0 0 .45em;
    color: #12332e;
    font-weight: 800;
}

.profile-success-dialog p {
    margin: 0 auto 1.2em;
    color: #5f6c7b;
    max-width: 22em;
}

.profile-success-ok {
    border: 0;
    border-radius: 999px;
    background: #087765;
    color: #fff;
    padding: .75em 1.8em;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 767px) {
    .profile-card {
    margin-inline: 1.5em;
}

.profile-page-load-skeleton {
    margin-inline: 1.5em;
}

.profile-skel-form-grid,
.profile-skel-choice-row {
    grid-template-columns: 1fr;
}

.profile-skel-actions {
    align-items: stretch;
    flex-direction: column;
}

.profile-skel-button,
.profile-skel-button-alt {
    width: 100%;
}

.public-url-prefix,
.public-url-field input {
    font-size: .95em;
}

.public-url-prefix {
    padding-inline: .7em;
}

.danger-zone,
.delete-account-actions {
    align-items: stretch;
    flex-direction: column;
}
}
