/* Global */

.noselect,
label,
.fieldGroupHeader {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Buttons */

.mgimo-greeting-form button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    height: 48px;
    max-height: 48px;
    font-size: 16px !important;
    cursor: pointer;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    outline: none !important;
    transition: all 0.25s ease-in-out;
}

.mgimo-greeting-form button.centered {
    margin: 0 auto;
}

.mgimo-greeting-form button img {
    max-width: 12px;
    position: absolute;
    top: 17px;
    opacity: 0;
    transition: all 0.25s ease-in-out;
}

.mgimo-greeting-form button:hover img {
    opacity: 1;
}

/* Secondary button */

.mgimo-greeting-form button.secondary {
    background: #fff !important;
    color: #777 !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mgimo-greeting-form button.secondary:hover {
    padding-left: 35px !important;
    color: #555555 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.mgimo-greeting-form button.secondary img {
    left: 18px;
}

.mgimo-greeting-form button.secondary:hover img {
    left: 15px;
}

/* Primary button */

.mgimo-greeting-form button.primary {
    background: #009640 !important;
    color: #fff !important;
    border: 1px solid #009640 !important;
}

.mgimo-greeting-form button.primary:hover {
    padding-right: 35px !important;
    background: #00aa48 !important;
    border: 1px solid #00aa48 !important;
}

.mgimo-greeting-form button.primary img {
    right: 18px;
}

.mgimo-greeting-form button.primary:hover img {
    right: 15px;
}

/* Form */

.mgimo-greeting-form h2 {
    position: relative;
    font-size: 22px;
    font-weight: 300;
    color: #777;
    z-index: 4;
    display: none;
}

form#mgimoGreetingForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3;
}

#mgimoGreetingForm .fieldGroup,
#mgimoGreetingForm .fieldGroupFields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3;
}

#mgimoGreetingForm .fieldGroupFields {
    background: #e7e7e9;
    padding: 40px;
    border-radius: 20px;
}

#mgimoGreetingForm .inlineFields {
    display: flex;
    gap: 12px;
}

.fieldGroupHeader {
    display: flex;
    width: 100%;
    min-width: 100%;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.fieldGroupHeader h3 {
    margin: 0;
    padding: 0;
}

.fieldGroupHeader p {
    margin: 0;
    padding: 0;
    color: #777;
}

#mgimoGreetingForm .field {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    z-index: 3;
}

#mgimoGreetingForm input,
#mgimoGreetingForm textarea,
#mgimoGreetingForm select {
    margin: 0;
    padding: 10px 12px;
    border: none;
    background: #ffffff;
    outline: none !important;
    color: #1d1d1d !important;
}

#mgimoGreetingForm textarea {
    resize: none;
    overflow: hidden;
    background: none;
    padding: 0;
    font-size: 24px;
    border-radius: 0;
    padding-bottom: 20px;
}

#mgimoGreetingForm label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #777;
}

.field .quotes {
    position: relative;
    display: flex;
    width: 75px;
    height: 75px;
}

/* Textarea progress tracker */

.textareaProgress {
    padding: 0 0 12px;
}

.textareaProgressTracker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 1px;
    overflow: hidden;
}

.textareaProgressTrackerLine {
  background: #ccc;
  height: 100%;
  width: 100%;
  opacity: 0.3;
  position: absolute;
  top: 0;
  left: 0;
}

.textareaProgressTrackerProgress {
  background: #0073aa;
  height: 100%;
  width: 0%;
  transition: width 0.2s ease;
  position: relative;
  z-index: 1;
}

.textareaProgressLabels {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* Address fields */

.addressFields {
    display: flex;
    width: 100%;
    min-width: 100%;
    gap: 20px;
    align-items: center;
    justify-content: center;
    height: ;
}

span.addressPreview {
    display: flex;
    font-size: 14px;
    background: #d5d5db;
    padding: 4px 8px;
    width: 100%;
    text-align: center;
    border-radius: 6px;
    color: #3a3a40;
    transform: translateY(36px);
    opacity: 0;
    visibility: hidden;
    height: 32px;
    margin-top: -32px;
    align-content: center;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    transition: all 0.25s ease-in-out;
}

span.addressPreview.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Map */

#mgimoMap {
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 30px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Leaflet */

.leaflet-control-attribution {
	display: none !important;
}

.greeting-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.greeting-marker img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}

.greeting-marker.no-avatar {
    color: #2a2a2a;
    font-weight: 500;
    font-size: 15px;
    line-height: 46px;
    text-align: center;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

/* Multistep */

.fieldGroup {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fieldGroup.active {
    display: block;
}

input.error,
textarea.error {
    outline: 1.5px solid #ef3a3a !important;
    outline-offset: 1px;
}

/* Optional styling for buttons in step footers */

.fieldGroupFooter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}

/* Avatar upload */

.upload-dropzone {
    border: 2px dashed #a4a4cc;
    background: #f8f8fb;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
}

.upload-dropzone.dragover {
    border-color: #6a5acd;
}

.upload-instructions {
    font-size: 16px;
    color: #333;
}

.upload-instructions button {
    margin-top: 10px !important;
}

.upload-note {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.upload-preview img {
    margin-top: 20px;
    max-width: 100px !important;
    min-width: 100px;
    width: 100px;
    max-height: 100px;
    min-height: 100px;
    height: 100px !important;
    border-radius: 50px !important;
    object-fit: cover;
    border: 4px solid #fff !important;
    outline: 1.5px dashed rgba(0, 0, 0, 0.1);
    outline-offset: 6px;
}