﻿/* =============== Deceased Details (page) =============== */

/* layout */
.deceased-details-page.yd-wrap {
    font-family: var(--font);
}

.deceased-details-page h2 {
    margin-bottom: 10px;
    font-family: var(--font);
    font-size: var(--h2);
    line-height: var(--h2-line-height);
    font-weight: var(--h2-font-weight);
    color: var(--h2-color);
}

/* header */
.yd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 18px;
}
.yd-title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  width: 100%;
  margin: 8px 0;
}
.yd-subtitle { color: #666; margin: 0; }

/* cards / sections */
.dd-card {
  padding: 16px;
  margin: 14px 0;
}

.dd-subtitle {
  font-weight: 600;
  margin: 0 0 10px;
}

/* fields */
.dd-field { margin: 14px 0; position: relative; }
.dd-label { display: block; font-size: 14px; margin-bottom: 6px; color: #333; }
.dd-input,
.dd-field input[type="text"],
.dd-field input[type="email"],
.dd-field input[type="date"],
.dd-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #8b72aa;
  border-radius: 4px;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dd-field input:focus,
.dd-field select:focus {
  border-color: #6f58a9;
  box-shadow: 0 0 0 3px rgba(111, 88, 169, .15);
}
.dd-field input:disabled,
.dd-field select:disabled {
  background: #f6f6f8;
  color: #666;
  cursor: not-allowed;
}

.dd-checkbox .dd-inline { display: inline-flex; align-items: center; gap: 8px; }
.dd-radio { margin: 6px 0; }

/* grids */
.dd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dd-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 720px) {
  .dd-grid-2, .dd-grid-3 { grid-template-columns: 1fr; }
}

/* convert preview */
#dd-conv-preview { margin: 6px 0 0; color: #666; font-size: 14px; }

/* suggestions dropdown (search graves) */
.dd-suggest {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  border: 1px solid #8b72aa;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  max-height: 260px;
  overflow: auto;
}
.dd-suggest[hidden] { display: none; }
.dd-suggest-item {
  padding: 10px 12px;
  border-top: 1px solid #f1edf9;
  cursor: pointer;
  font-size: 14px;
}
.dd-suggest-item:first-child { border-top: 0; }
.dd-suggest-item:hover { background: #f6f0ff; }

/* Also Remind list */
#dd-remind-list { margin-top: 8px; }
.dd-remind-card {
  margin: 12px 0;
}
.dd-remind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dd-remind-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
@media (max-width: 720px) {
  .dd-remind-grid { grid-template-columns: 1fr; }
}


/* page actions */
.dd-actions {
  text-align: center;
  margin: 24px 0 10px;
}
#dd-finish {
  min-width: 140px;
}

/* messages */
#dd-msg {
  margin: 6px 0 10px;
  font-size: 14px;
}
#dd-msg.ok  { color: #0a7a33; }
#dd-msg.err { color: #b00020; }



/* misc */
.yd-hint { font-size: 13px; color: #666; }



.dd-card-wrapper {
    margin-bottom: 30px;
}

.dd-card-wrapper label,
.dd-card-wrapper .dd-label {
    font-family: var(--font);
    font-size: var(--field-label-size);
    line-height: var(--field-label-line-height);
    font-weight: var(--field-label-font-weight);
    color: var(--field-label-color);
}

.dd-card-wrapper input[type="text"], 
.dd-card-wrapper input[type="email"], 
.dd-card-wrapper select,
.dd-remind-list input[type="text"],
.dd-remind-list input[type="email"],
.dd-remind-list input[type="tel"],
.dd-remind-list select,
#dd-remind-list input[type="text"],
#dd-remind-list input[type="email"],
#dd-remind-list input[type="tel"],
#dd-remind-list select{
    width: 100%;
    border: 1px solid #4d2b79;
    border-radius: 0;
    box-sizing: border-box;
    padding: 15px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: #000 !important;
    min-height: 50px;
    background-color: #fff;
}

.dd-card-wrapper select,
.dd-remind-list select{
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" width="12" height="12"%3E%3Cpath d="M0 0l6 6 6-6z" fill="%23000" /%3E%3C/svg%3E');
    appearance: none;
    background-color: white;
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) 24px;
    background-size: 12px;
    border: 1px solid #4d2b79;
    border-radius: 0;
    box-sizing: border-box;
}

.dd-date-left-block select {
    background-position: calc(100% - 12px) 24px;
}

.dd-label{
    margin-bottom: 10px;
}

.dd-date-right-block .dd-checkbox {
    margin-left: 20px;
}

.dd-date-wrapper {
    display: flex;
    align-items: center;
}

.deceased-details-page h3{
    font-family: var(--font);
    font-size: var(--h3);
    line-height: var(--h3-line-height);
    font-weight: var(--h3-font-weight);
    color: var(--h3-color);
    padding: 0;
    margin: 0;
}

.also-remind {
    border-top: 1px solid var(--neutral-200);
}

.also-remind-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    margin-bottom: 30px;
    margin-top: 30px;
    position: relative;
}

.also-remind-header .btn-add-also-remind:after {
    content: "";
    width: 19px;
    height: 19px;
    display: inline-block;
    background-image: url(../img/open-icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.also-remind-header .btn-add-also-remind {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    padding: 10px 60px 10px 30px;
    border-radius: 0;
    border: 1px solid #000;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
    min-height: 50px;
    position: relative;
}

.dd-remind-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
    column-gap: 32px;
}

#dd-finish {
    color: #fff !important;
    border-color: #000;
    border-radius: 0px;
    border: none;
    font-size: 16px;
    font-weight: 600 !important;
    background-color: #000;
    cursor: pointer;
    max-width: 150px;
    margin-bottom: 30px;
    margin-top: 20px;
    min-width: 150px;
    text-transform: uppercase;
    margin-left: 10px;
}

.dd-remind-actions button {
    color: #fff !important;
    border-color: #000;
    border-radius: 0px;
    border: solid 1px;
    font-size: 14px;
    font-weight: 600 !important;
    background-color: #000;
    padding: 10px 20px;
    cursor: pointer;
    margin-bottom: 0;
    margin-top: 20px;
    text-transform: uppercase;
}

#dd-wrap .dd-input[disabled] {
    border-color: #9ca3af !important;
    color: #4b5563 !important;
    background-color: #f3f4f6 !important;
    cursor: not-allowed;
    opacity: 0.8;
}


.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding: 0 10px 0 5px;
}

.tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: -5px;
  left: 110%;
}

.tooltiptext::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.question-icon {
  width: 17px;
  height: 17px;
  display: inline-block;
  background-image: url(../img/question-icon.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.burial-place-title.hide {
    display: none;
}

#finished-message{
    text-align: center;
}

h2#finished-message{
    margin-bottom: 0;
}

#dd-suggest,
#dd-hebrew-name, 
#dd-name, 
.dd-card-wrapper select {
    width: 100%;
}

.dd-name-input-wrap {
    position: relative;
    width: 100%;
}

.dd-name-input-wrap #dd-name {
    padding-right: 44px;
}

#dd-clear-selected {
    align-items: center;
    background: transparent;
    border: none;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 17px;
    font-weight: 600 !important;
    height: 42px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    z-index: 2;
    background: #000;
}


@media( max-width: 767px){
    #dd-wrap{
        padding: 10px 15px;
    }

    .user-header.yd-card-head,
    .yahrzeit-header,
    .yahrzeit-dashboard .yd-header,
    .also-remind-header{
        flex-direction: column;
        align-items: start;
    }
    .also-remind-item {
      flex-wrap: wrap;
      display: flex;
    }
    .question-icon{
        display: none;
    }

    #dd-suggest,
    .dd-card-wrapper select,
    #dd-hebrew-name,
    #dd-name {
        width: 100%;
    }
}
