/* ============================================================
   Turner-McCrary Memorials — Public Styles
   Accent: Rose/mauve #e07b85  |  Navy/cream from theme
============================================================ */

/* ── Tribute grid ──────────────────────────────────────── */
.tmm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}

.tmm-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(224,123,133,.18);
    border-radius: 10px;
    padding: 30px 22px 24px;
    text-align: center;
    transition: border-color .3s, transform .3s;
}
.tmm-card:hover {
    border-color: rgba(224,123,133,.45);
    transform: translateY(-3px);
}

.tmm-photo {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a0f14, #0D1B2A);
    border: 3px solid rgba(224,123,133,.4);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #e07b85;
    overflow: hidden;
    flex-shrink: 0;
}
.tmm-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.tmm-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #F5EDD6;
    margin-bottom: 4px;
    line-height: 1.3;
}

.tmm-years {
    font-size: .72rem;
    color: rgba(224,123,133,.7);
    letter-spacing: .1em;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.tmm-relation {
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(245,237,214,.35);
    margin-bottom: 14px;
    font-weight: 600;
}

.tmm-tribute {
    font-size: .84rem;
    color: rgba(245,237,214,.62);
    font-style: italic;
    line-height: 1.65;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
}

.tmm-candle {
    font-size: .95rem;
    margin-top: 14px;
    opacity: .55;
}

/* ── Submission form ────────────────────────────────────── */
.tmm-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tmm-form-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tmm-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tmm-form-label {
    font-size: .66rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(224,123,133,.8);
    font-weight: 600;
}

.tmm-form-input,
.tmm-form-textarea {
    background: rgba(255,255,255,.035) !important;
    border: 1px solid rgba(224,123,133,.2) !important;
    border-radius: 6px;
    padding: 12px 15px;
    color: #F5EDD6 !important;
    font-family: inherit;
    font-size: 1rem; /* prevents iOS zoom */
    transition: border-color .2s;
    width: 100%;
    box-sizing: border-box;
}
.tmm-form-input:focus,
.tmm-form-textarea:focus {
    border-color: rgba(224,123,133,.65) !important;
    outline: none;
}
.tmm-form-input::placeholder,
.tmm-form-textarea::placeholder {
    color: rgba(245,237,214,.2) !important;
}

.tmm-form-file {
    color: rgba(245,237,214,.55);
    font-size: .84rem;
}

.tmm-form-hint {
    font-size: .72rem;
    color: rgba(245,237,214,.35);
    margin: 0;
    line-height: 1.5;
}

.tmm-form-divider {
    border: none;
    border-top: 1px solid rgba(224,123,133,.12);
    margin: 6px 0;
}

.tmm-form-submit {
    width: 100%;
    background: #e07b85;
    color: #0D1B2A;
    border: none;
    padding: 18px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    margin-top: 4px;
}
.tmm-form-submit:hover {
    background: #eb9099;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(224,123,133,.3);
}

.tmm-form-error {
    background: rgba(214,54,56,.12);
    border: 1px solid rgba(214,54,56,.3);
    border-radius: 6px;
    padding: 14px 18px;
    color: #f5a0a2;
    font-size: .88rem;
    line-height: 1.5;
}

.tmm-success {
    background: rgba(224,123,133,.08);
    border: 1px solid rgba(224,123,133,.25);
    border-radius: 10px;
    padding: 48px 32px;
    text-align: center;
    color: rgba(245,237,214,.8);
}
.tmm-success h3 {
    font-family: 'Playfair Display', serif;
    color: #F5EDD6;
    margin-bottom: 12px;
}
.tmm-success p {
    font-size: .92rem;
    line-height: 1.7;
    color: rgba(245,237,214,.6);
    max-width: 440px;
    margin: 0 auto;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .tmm-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .tmm-form-row--2 { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
    .tmm-grid { grid-template-columns: 1fr; }
}
