.dob-group label, .dod-group label {
    font-size: 12px;
    color: #757575;
    width: 80px;
} 
#previewTribute:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}
.tribute-limit-box{
    background:#fff;
    border:1px solid #e5e5e5;
    padding:20px;
    border-radius:12px;
    margin-bottom:25px;
}

.tribute-limit-top{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
    font-weight:600;
}

.tribute-progress{
    width:100%;
    height:12px;
    background:#eee;
    border-radius:30px;
    overflow:hidden;
}

.tribute-progress-fill{
    height:100%;
    background:var(--primary-color);
    border-radius:30px;
    transition:0.3s ease;
}

.limit-msg{
    margin-top:10px;
    color:red;
    font-weight:600;
}
span#rememberedByCount {
    color: var(--primary-color);
    font-weight: 700;
}
.lifeline-counter {
    font-size: 15px;
    color: #666;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: right;
}
.lifeline-counter span {
    font-weight: 600;
    color: var(--primary-color);
}
.lifeline-row {
    margin: 20px 0;
}
.preview-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    z-index: 10;
}
.profile-preview .preview-overlay {
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: #00000036;
    color: #fff;
}
.profile-preview .preview-overlay,
.profile-preview .replace-btn {
    cursor: pointer;
}
.dob-group input[type="number"],
.dod-group input[type="number"] {
    -moz-appearance: textfield;
}

.dob-group input[type="number"]::-webkit-outer-spin-button,
.dod-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.dob-group,
.dod-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.dob-group input,
.dod-group input,
.dob-group select,
.dod-group select {
    flex: 1;
    height: 50px;
    
}
.dob-group select,
.dod-group select,
.relationship-select-wrp select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 0 15px;
    height: 50px;
    width: 100%;
    font-size: 14px;
    color: #757575;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
        text-align: left;
}
.lifeline-preview {
    position: relative;
}
.step-two.form-btn-wrp button {
    margin: 0px 10px;
}
.step-form-wrp.step-two {
    padding-bottom: 70px;
}
.preview-actions .edit {
    width: 100%;
    height: 100%;
    border-radius: 10px !important;
    padding: 0px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    font-weight: 700;
}
.preview-actions .edit i {
    margin-left: 2px !important;
}
.draft-actions a {
    padding: 9.6px;
        margin: 10px;
}
.page-template-template-create {
    background: #f0f0f0;
}
.draft-actions .btn-primary {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 14px;
        font-weight: 600;
}
.draft-actions .btn-secondary {
    background: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 14px;
        font-weight: 600;
}
#cropConfirm {
    background: #4CAF50;
    border: none;
    color: #fff;
    padding: 8px 10px;
}
#cropCancel {
    background: var(--primary-color);
    border: none;
    padding: 8px 10px;
    color: #fff;
}
#global-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#global-loader img {
    width: 80px;
    height: auto;
}
#global-loader p {
    margin-top: 12px;
    font-weight: 600;
    color: #c8102e;
    font-size: 15px;
}
/* Button loading state */
button.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}
.form-upload-wrp.profile-upload {
    position: relative;
        margin: 30px 0;
}
.profile-upload .error-text {
    position: absolute;
    left: 0;
    right: 0;
    top: -25px;
}
.step-form-wrp {
    width: 100%;
    padding: 30px 30px;
    border-radius: 10px;
    background: #fff;
    -webkit-box-shadow: 2px 2px 18px 7px rgba(107, 107, 107, 0.46);
    box-shadow: 2px 2px 18px 7px rgb(107 107 107 / 15%);
}
.step_form_title hr {
    opacity: 1;
    width: 70px;
    margin-left: auto;
    margin-right: auto;
    height: 3px;
    color: var(--primary-color);
}
.form-input-wrp input,
.lifeline-row input[type="number"] {
    width: 100%;
    padding: 12px 10px !important;
     border-radius: 10px;
  border: 1px solid #ccc;
    margin: 10px 0;
    text-align: left;
}
.relationship-select-wrp select {
      margin: 10px 0;  
}
.simple-textarea {
    width: 100%;
    min-height: 150px;  
    height: 150px;       
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    resize: none;   
        margin-top: 15px;
}
.char-counter {
    text-align: right;
}
#charCount {
    color: var(--primary-color);
    font-weight: 600;
}
.step_form_title { margin: 20px 0; text-align: center; font-size: 25px; font-weight: 900; margin: 20px; color: #000; text-transform: uppercase; } 
.form-btn-wrp .col-md-12 {
    position: relative;
}

.submit-btn-free {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

button[name="step1_submit"] {
    float: right;
}
.form-btn-wrp button {
    float: right;
    margin: 10px 0 0;
    background: var(--primary-color);
    border: none;
    padding: 15px 30px;
    color: #fff;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 900;
    transition: 0.3s;
}
.form-btn-wrp button:hover {
    background: var(--secondary-brand-color);
}
.btn-prev:hover {
       background: var(--secondary-brand-color);
       color:#fff;
}
.upload-box{text-align:center}
.upload-pill {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    background: var(--primary-color);
    font-size: 14px;
    font-weight: 900;
    transition: 0.3s;
    text-transform: uppercase;
}
.upload-pill:hover {
      background: var(--secondary-brand-color);
}
/* STEP 1 – hide upload button after image upload */
.upload-box.has-image .upload-pill,
.upload-box.has-image .upload-text,
.upload-box.has-image .upload-note {
    display: none;
}

.upload-preview {
    position: relative;
    display: inline-block;
}

.upload-preview img {
    max-width: 300px;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.custom-profile-upload {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: center;
}

.profile-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f9f9f9;
}

.profile-preview .placeholder i {
    font-size: 40px;
    color: #aaa;
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-upload-action {
    text-align: left;
}
.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 45px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}
.upload-btn:hover {
    opacity: 0.9;
}

.upload-note {
    font-size: 13px;
    margin-top: 8px;
    color: #555;
}
/* Reuse same action buttons */
.upload-preview .preview-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
}

.upload-preview .preview-actions span {
    background: rgba(0,0,0,.7);
    color: #fff;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}
.upload-pill.dragover{outline:2px dashed #fff}
.upload-note{font-size:13px;margin-top:6px;margin-bottom:0px;}
.upload-preview img{
    max-width:300px;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
}
.preview-wrapper{position:relative;display:inline-block}
.preview-actions{
    position:absolute;
    top:6px;
    right:6px;
    display:flex;
    gap:6px;
}

.next-btn{
    margin-top:20px;
    float:right;
    background:#e0ba6f;
    color:#fff;
    border:none;
    padding:8px 25px;
}
/* Lifeline Image Upload */
.lifeline-upload-box {
    text-align: center;
}

.lifeline-preview {
    width: 150px;
    height:150px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: none;
    border-radius:10px;
}

.lifeline-preview[style*="background-image"] {
    display: block;
}

.preview-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 6px;
}

.preview-actions span {
    line-height: 26px;
    background: rgba(0,0,0,.7);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}
.lifeline-preview {
    position: relative;
    overflow: hidden;
}

/* FULL OVERLAY */
.preview-actions.full-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: 0.3s;
    cursor: pointer;
}


/* CENTER BUTTON */
.replace-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.replace-btn i {
    font-size: 28px;
}
.lifeline-upload-box .upload-pill {
    font-size: 14px;
}
#lifeline-gallery-wrapper textarea {
    width: 100%;
    min-height: 150px;  
    height: 150px;       
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    resize: none;   
}
#lifeline-gallery-wrapper select {
    width: 100%;
    padding: 12px 10px !important;
     border-radius: 10px;
  border: 1px solid #ccc;
    margin: 10px 0;
}
div#lifeline-gallery-wrapper {
    margin: 50px 0 30px;
}
#add-lifeline i {
    border: 1px solid;
    width: 25px;
    height: 25px;
    line-height: 25px;
    border-radius: 50%;
    margin-right: 10px;
}
.step-form-wrp input[type="date"] {
    width: 100%;
    padding: 8px 20px !important;
border-radius: 4px; 
border:2px solid  var(--secondary-brand-color);
    margin: 10px 0;
}
.add-row-btn-wrp {
    text-align: center;
}
#add-lifeline {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    background: none !important;
    padding: 15px 30px;
    border: 2px dashed var(--primary-color) !important;
    border-radius: 10px;
}
.remove-lifeline {
    padding: 5px 10px;
    font-size: 12px;
    background: var(--primary-color);
    border: none;
    color: #fff;
    border-radius: 50%;
    height: 30px;
        margin: 15px 0 0;
}
.lifeline-upload-wrp {
    display: flex;
    justify-content: center;
    gap: 30px;
    height: 100%;
}
.lifeline-upload-box .upload-pill {
    display: inline-block;
    margin: 20px 0 0;
}
.lifeline-upload-box.has-image input[type="file"] {
    pointer-events: none;
}
.step-num {
    background: var(--primary-color);
    width: 35px;
    height: 35px;
    line-height: 30px;
    border-radius: 50px;
    color: #fff;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: 0px;
    border: 4px solid #f0f0f0;
}
.disabled-btn {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #7d7d7d !important;
}
.disabled-btn:hover {
 background-color: #7d7d7d !important;
}
.profile-preview .edit,
.profile-preview .remove {
    width: 25px;
    height: 25px;
    font-size: 11px;
    border-radius: 50px !important;
    padding: 0 !important;
}
.lifeline-upload-box.has-image .upload-pill {
    display: none;
    pointer-events: none;
}
.guide_wrp_inner {
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0.25;
    pointer-events: none;
        position: relative;
}

.guide_wrp_inner img {
    max-width: 130px;
}

.guide_wrp_inner p {
    margin-top: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
}
.guide_wrp_inner.active {
    opacity: 1;
    pointer-events: auto;
}
.guide_wrp_inner.inactive {
    opacity: 0.2;
}
.lifeline-row .datepicker {
    width: 100%;
    padding: 12px 10px !important;
     border-radius: 10px;
  border: 1px solid #ccc;
    margin: 10px 0;
}
.other-title-wrapper input {
    width: 100%;
    padding: 5px 10px !important;
    border-radius: 0;
    border-image: var(--form-border-color);
    border-image-slice: 1;
    border-width: 2px;
    border-style: solid;
    margin: 5px 0;
}
.social-share {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.social-share .share-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #d81f26;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.25s ease, background 0.25s ease;
    text-decoration: none;
}

.social-share .share-icon i {
    color: #ffffff;
}
.share-icon.facebook,
.share-icon.whatsapp,
.share-icon.email,
.share-icon.pinterest,
.share-icon.linkedin,
.share-icon.twitter {
    background: #d81f26;
}
.social-share .share-icon {
    width: 30px;
    height: 30px;
    font-size: 20px;
    padding: 18px;
}
.create_btn_wrp {
    margin: 20px 0;
}

.create_btn_wrp a {
 display: inline-block;
    padding: 9.6px 20px;
    border-radius: 4px;
    text-decoration:none;
    color: #fff;
    cursor: pointer;
    background: var(--primary-color);
    font-size: 14px;
    font-weight: 900;
    transition: 0.3s;
    text-transform:uppercase;
}
.error-text {
    color: #F44336;
    text-align: center;
    margin: 0 auto;
}
#cropModal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    padding:12px; 
}
.crop-inner{
    background:#fff;
    padding:0;
    max-width:520px;
    width:100%;
    max-height:90vh;
    display:flex;
    flex-direction:column;
    overflow:hidden; 
    border-radius:10px;
}
#cropImage{
    width:100%;
    height:auto;
    max-height:65vh;
    object-fit:contain;
}
.crop-actions{
    display:flex;
    justify-content:space-between;
    padding:12px;
    border-top:1px solid #eee;
    background:#fff;
    position:sticky;
    bottom:0;
    z-index:2;
}
.relationship-select-wrp select,
.custom-relationship-field input {
    width: 100%;
}

.custom-relationship-inner {
    position: relative;
}

.close-custom-relationship {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 16px;
}

.close-custom-relationship:hover {
    color: #000;
}
@media (max-width: 993px) {
    .remove-lifeline {
    margin:0px;
}
.lifeline-upload-box .upload-pill {
    margin: 0px;
}
    .guide_wrp_inner img {
    max-width: 69px;
}
.guide_wrp_inner p {
    font-size: 12px;
}
.step_form_title {
    font-size: 20px;
}
.lifeline-preview {
    width: 200px;
    height: 200px;
}
}
@media (max-width: 769px) {
    .limit-msg {
    font-size: 12px;
}
.tribute-limit-top {
    font-size: 12px;
}   
.step-num {
    width: 25px;
    height: 25px;
    line-height: 19px;
    font-size: 10px;
}
.lifeline-row {
    padding-bottom: 20px;
}
.create_btn_wrp a {
    font-size: 11px;
}
.upload-pill {
    font-size: 11px;
}
.step-two.form-btn-wrp {
    margin: 30px 0 0;
}
.step-two.form-btn-wrp button {
    margin: 10px;
}
}
@media (max-width: 500px) {
    .step-two.form-btn-wrp button {
    float: none;
}
.step-two.form-btn-wrp {
    display: block;
    flex-direction: column;
}
.right-btns {
    display: inline-flex;
}
#add-lifeline {
    padding: 10px 16px;
    font-size: 12px;
}
.form-btn-wrp button {
    padding: 15px 11px;
    font-size: 12px;

}
.btn-prev, .btn-submit {
 padding: 15px 11px;
    font-size: 12px;
}
.submit-btn-free.mx-auto {
    float: left !important;
    left: 60px !important;
    float: left !important;
}
.step-form-wrp.step-two {
    padding-bottom: 30px;
}
.upload-preview img {
    max-width: 200px;
}    
.social-share {
    gap: 5px;
    margin-top: 30px;
}
.social-share .share-icon {
    width: 20px;
    height: 20px;
    font-size: 15px;
    padding: 13px;
}
.draft-actions .btn-secondary,
.draft-actions .btn-primary {
    font-size: 10px;
}
.custom-profile-upload {
    flex-direction: column;
}
.custom-profile-upload {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: center;
    flex-direction: column;
}
}

.share-step {
    margin: auto;
    text-align: center;
}
.share-title i {
    color: var(--primary-color);
    margin-right: 10px;
}
.share-link-text i {
    color: var(--primary-color);
}
.share-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.email-input,
.email-message {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
}

.email-message {
    min-height: 100px;
}

.share-link-text {
    margin: 20px 0;
    font-weight: 600;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-box {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}
.social-icons-row a {
    text-decoration: none !important;
}
.social-box.twitter { background:#1da1f2; }
.social-box.facebook { background:#3b5998; }
.social-box.google { background:#db4437; }
.social-box.pinterest { background:#bd081c; }
.social-box.whatsapp { background:#25d366; }
.social-box.more { background:#444; }

.share-buttons-row {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.btn-prev,
.btn-submit {
    padding: 12px 25px;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    border: none;
    text-decoration: none;
}
.social-icons-row a {
    color: var(--white);
}