/**
 * Funeral Card flow styles
 */

/* Soft sympathy theme colors */
:root {
    --ogb-funeral-bg: #f8f9fa;
    --ogb-funeral-accent: #6c757d;
    --ogb-funeral-text: #495057;
    --ogb-funeral-primary: #2c3e50;
    --ogb-funeral-border: #dee2e6;
}

/* Modal specific override for funeral cards */
.ogb-funeral-modal .ogb-modal-container {
    max-width: 1100px;
    background: var(--ogb-funeral-bg);
}

.ogb-funeral-modal .ogb-modal-header {
    background: #fff;
    border-bottom: 2px solid var(--ogb-funeral-border);
}

/* Font pairings */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

.ogb-funeral-modal {
    font-family: 'Lora', serif;
}

.ogb-cursive-font {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #4a4a4a;
}

/* Step 2: 3-panel layout */
.ogb-personalize-panels {
    display: flex;
    gap: 20px;
    height: 500px;
    margin-bottom: 30px;
}

.ogb-panel {
    flex: 1;
    background: #fff;
    border: 1px solid var(--ogb-funeral-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ogb-panel-label {
    background: #f1f3f5;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ogb-funeral-accent);
    border-top: 1px solid var(--ogb-funeral-border);
}

.ogb-panel-preview, .ogb-panel-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.ogb-panel-front img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Inside Left Editor */
.ogb-panel-inside-left textarea {
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    padding: 40px;
    outline: none;
    background: transparent;
}

/* Inside Right Preview */
.ogb-sympathy-content {
    text-align: center;
    max-width: 80%;
}

.ogb-sympathy-text {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #333;
}

.ogb-sympathy-closing {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.ogb-name-preview-wrap {
    min-height: 60px;
    margin-bottom: 20px;
}

.ogb-name-input-wrap {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.ogb-name-input-wrap input {
    width: 100%;
    padding: 8px 12px;
    border: 1px dashed var(--ogb-funeral-border);
    border-radius: 4px;
    text-align: center;
    font-family: 'Lora', serif;
}

/* Step 3: Address Form & Envelope Preview */
.ogb-address-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.ogb-address-fields h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--ogb-funeral-border);
    padding-bottom: 5px;
}

.ogb-form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.ogb-form-grid input, .ogb-form-grid select {
    padding: 10px;
    border: 1px solid var(--ogb-funeral-border);
    border-radius: 4px;
    width: 100%;
}

.ogb-form-row-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.ogb-delivery-options {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ogb-helper-text {
    font-size: 0.85rem;
    color: var(--ogb-funeral-accent);
    font-style: italic;
    margin: 5px 0 0 25px;
}

/* Envelope Preview */
.ogb-envelope-preview {
    background: #fff;
    aspect-ratio: 1.4;
    border: 1px solid #ddd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    position: relative;
    padding: 40px;
    font-family: 'Arial', sans-serif; /* Standard address font */
    color: #333;
}

.ogb-stamp {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 75px;
    background: #f1f1f1;
    border: 1px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ogb-stamp::after {
    content: 'STAMP';
    font-size: 10px;
    color: #999;
    font-weight: bold;
}

.ogb-return-address-preview {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 60px;
}

.ogb-delivery-address-preview {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-left: 15%;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .ogb-personalize-panels {
        flex-direction: column;
        height: auto;
    }
    
    .ogb-panel {
        min-height: 350px;
    }
    
    .ogb-address-layout {
        grid-template-columns: 1fr;
    }
}
