/* ============================================
   GLOBAL WRAPPER
============================================ */
.af-create-memorial-wrapper {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

/* ============================================
   TITLES
============================================ */
.af-create-memorial-title {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #111111;
}

/* ============================================
   WIZARD STEPS
============================================ */
.af-wizard-steps {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.af-wizard-step-indicator {
    flex: 1;
    text-align: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #111111;
    color: #f5f5f5;
    opacity: 0.45;
    transition: 0.25s ease;
}

.af-wizard-step-indicator.af-step-active {
    background: #c9a15b;
    color: #111111;
    opacity: 1;
}

/* ============================================
   FORM GRID
============================================ */
.af-grid {
    display: grid;
    gap: 1.5rem;
}

.af-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.af-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   FORM FIELDS
============================================ */
.af-field label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
    color: #111111;
}

.af-field input,
.af-field textarea,
.af-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #fafafa;
    transition: 0.2s ease;
}

.af-field input:focus,
.af-field textarea:focus,
.af-field select:focus {
    border-color: #c9a15b;
    background: #fff;
    outline: none;
}

/* ============================================
   UPLOAD ZONES
============================================ */
.af-upload-dropzone {
    border: 2px dashed #c9a15b;
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    background: #fff9f0;
    cursor: pointer;
    transition: 0.25s ease;
}

.af-upload-dropzone:hover {
    background: #fff3df;
}

.af-preview-thumb {
    width: 100%;
    max-width: 180px;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ============================================
   BUTTONS
============================================ */
.af-btn {
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.25s ease;
}

.af-btn-primary {
    background: #111111;
    color: #ffffff;
}

.af-btn-primary:hover {
    background: #000000;
}

.af-btn-gold {
    background: #c9a15b;
    color: #111111;
}

.af-btn-gold:hover {
    background: #b48d4f;
}

.af-btn-outline {
    background: transparent;
    border: 2px solid #111111;
    color: #111111;
}

.af-btn-outline:hover {
    background: #111111;
    color: #ffffff;
}

.af-btn-ghost {
    background: transparent;
    color: #111111;
}

.af-btn-ghost:hover {
    opacity: 0.6;
}

/* ============================================
   SECTION VISIBILITY
============================================ */
.af-step-section {
    display: none;
}

.af-step-section.af-step-active {
    display: block;
}

/* ============================================
   TEMPLATE MODAL
============================================ */
#af-template-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#af-template-modal.af-open {
    display: flex;
}

.af-template-modal-inner {
    background: #ffffff;
    padding: 2rem;
    border-radius: 18px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

.af-template-modal-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #111111;
}

/* ============================================
   TEMPLATE GRID
============================================ */
.af-template-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.af-template-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    padding: 1rem;
    cursor: pointer;
    transition: 0.25s ease;
}

.af-template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.af-template-card-image img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.af-template-placeholder {
    width: 100%;
    height: 160px;
    background: #eee;
    border-radius: 12px;
}

/* ============================================
   TIMELINE
============================================ */
.af-timeline-row {
    background: #fafafa;
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e5e5e5;
}

.af-timeline-row h4 {
    margin-bottom: 0.5rem;
    color: #111111;
}

.af-timeline-media-preview img,
.af-timeline-media-preview video {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 0.5rem;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .af-grid-2,
    .af-grid-3 {
        grid-template-columns: 1fr;
    }

    .af-create-memorial-wrapper {
        padding: 1.5rem;
    }
}