/**
 * Virtual Candles - Frontend Styles
 * 
 * @package STstudio\VirtualCandles
 * @since   2.0.0
 */

/* ==========================================================================
   Global Resets und Box Model
   ========================================================================== */

/* Box-sizing für alle Elemente */
.vc-form-wrapper *,
.lichter-formular *,
.lichter-group *,
.vc-display-wrapper *,
.vc-chapel-display * {
    box-sizing: border-box;
}

/* ==========================================================================
   Formular Basis-Styles
   ========================================================================== */

.vc-form-wrapper {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.vc-form-title {
    text-align: center;
    margin-bottom: 2rem;
}

.lichter-formular {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Formular-Zeilen */
.lichter-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lichter-form-col {
    flex: 1 1 100%;
}

@media (min-width: 600px) {
    .lichter-form-col {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

@media (max-width: 599px) {
    .lichter-form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .lichter-form-col {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   Formular-Elemente
   ========================================================================== */

/* Input-Felder */
.lichter-formular input[type="text"],
.lichter-formular input[type="email"],
.lichter-formular textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
    max-width: 100%;
}

.lichter-formular input[type="text"]:focus,
.lichter-formular input[type="email"]:focus,
.lichter-formular textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Fehler-Nachrichten */
.vc-error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

.lichter-formular input.error,
.lichter-formular textarea.error {
    border-color: #dc3545;
}

/* Textarea */
.lichter-formular textarea {
    resize: vertical;
    min-height: 80px;
}

/* Zeichenzähler */
.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: #ff6b35;
    font-weight: bold;
}

/* ==========================================================================
   Kerzenbild Container
   ========================================================================== */

.kerzenbild-container {
    text-align: center;
    padding: 1.25rem 1rem;
    background: radial-gradient(ellipse at 50% 62%, #12294a 0%, #0b1e3d 58%, #081527 100%);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(11, 30, 61, 0.28), inset 0 0 0 1px rgba(181, 117, 14, 0.18);
}

.kerzenbild {
    max-width: 100%;
    height: auto;
    mix-blend-mode: screen;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)) contrast(1.05) saturate(1.05);
}

.kerze-vorschau {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
}

.kerze-vorschau span {
    display: block;
}

/* ==========================================================================
   Checkbox & Datenschutz
   ========================================================================== */

.customCheckbox {
    margin: 1.5rem 0;
}

.customCheckbox label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.5;
}

.customCheckbox input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.checkbox-custom {
    display: none; /* Falls custom checkbox gewünscht */
}

.dsgvo_hinweis {
    margin-top: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 3px solid #ff6b35;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

.dsgvo_hinweis a {
    color: #ff6b35;
    text-decoration: underline;
}

.dsgvo_hinweis a:hover {
    text-decoration: none;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.vc-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 14px 28px;
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.vc-submit-button:hover:not(:disabled) {
    background-color: #e85a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.vc-submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.vc-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Loader */
.button-loader {
    margin-left: 10px;
}

.vc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: vc-spin 1s ease-in-out infinite;
}

@keyframes vc-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Formular-Nachrichten
   ========================================================================== */

.vc-form-messages {
    margin-top: 1rem;
    text-align: center;
}

.vc-form-messages .success-message,
.vc-form-messages .error-message {
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    animation: vc-fadeIn 0.3s ease-in-out;
}

.vc-form-messages .success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vc-form-messages .error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes vc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Honeypot (Spam-Schutz)
   ========================================================================== */

.vc-honey {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

/* ==========================================================================
   Responsive Anpassungen
   ========================================================================== */

@media (max-width: 768px) {
    .lichter-formular {
        padding: 1.5rem;
    }
    
    .lichter-form-col {
        flex: 1 1 100%;
    }
    
    .vc-submit-button {
        width: 100%;
    }
}

/* ==========================================================================
   JavaScript-Animationen
   ========================================================================== */

/* Kerze brennt Animation */
.kerzenbild.burning {
    animation: flicker 3s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { filter: brightness(1) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)); }
    50% { filter: brightness(1.1) drop-shadow(0 0 20px rgba(255, 107, 53, 0.5)); }
}

/* Glüh-Effekt */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: glow 2s ease-in-out;
    pointer-events: none;
}

@keyframes glow {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* Funkeln-Effekt */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffeb3b;
    border-radius: 50%;
    animation: sparkle 3s ease-in-out;
    pointer-events: none;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0);
    }
}

/* ==========================================================================
   Kerzen-Grid für Archiv
   ========================================================================== */

.lichter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.lichter-column {
    flex: 1 calc(10% - 1rem);
    min-width: 100px;
    text-align: center;
}

.licht-single-content {
    transition: transform 0.3s ease;
}

.licht-single-content:hover {
    transform: translateY(-5px);
}

.licht-single-content a {
    text-decoration: none;
    color: inherit;
}

.licht-img-wrap {
    margin-bottom: 0.5rem;
    position: relative;
    background: radial-gradient(ellipse at 50% 62%, #12294a 0%, #0b1e3d 58%, #081527 100%);
    border-radius: 12px;
    padding: 0.75rem 0.5rem 0.5rem;
    box-shadow: 0 8px 20px rgba(11, 30, 61, 0.26), inset 0 0 0 1px rgba(181, 117, 14, 0.16);
}

.licht-img-wrap img {
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
    filter: contrast(1.05) saturate(1.05);
    max-width: 280px;
}

.licht-time-remaining {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
}

.licht-info {
    font-size: 0.75rem;
}

.licht-heading, .licht-von {
    display: block;
}

/* Load More Button */
.vc-load-more {
    display: block;
    margin: 2rem auto;
    padding: 12px 24px;
    background-color: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vc-load-more:hover:not(:disabled) {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.vc-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Responsive Anpassungen für Grid
   ========================================================================== */

@media (max-width: 1200px) {
    .lichter-column {
        flex: 0 0 calc(20% - 1rem);
    }
}

@media (max-width: 768px) {
    .lichter-column {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (max-width: 480px) {
    .lichter-column {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

/* ==========================================================================
   Display Wrapper
   ========================================================================== */

.vc-display-wrapper {
    margin: 2rem 0;
}

.vc-display-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* Form Toggle */
.vc-form-toggle-container {
    text-align: center;
    margin-bottom: 2rem;
}

.vc-toggle-form {
    margin: 0 auto;
}

.vc-form-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.vc-form-container.active {
    max-height: 1000px;
}

.vc-no-candles {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

/* ==========================================================================
   Chapel Display (Kapellen-Ansicht)
   ========================================================================== */

.vc-chapel-display {
    position: relative;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow: hidden;
}

.vc-chapel-display.vc-fullscreen {
    width: 100vw;
    height: 100vh;
}

/* Karussell-Modus */
.vc-carousel-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 100px);
    overflow: hidden;
}

.vc-carousel-track {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    will-change: transform;
}

.vc-carousel-track .lichter-column {
    flex-shrink: 0;
    width: 200px;
    margin: 0 10px;
}

/* Grid-Modus mit Rotation */
.vc-grid-container {
    display: grid;
    grid-template-columns: repeat(var(--columns, 10), 1fr);
    grid-template-rows: repeat(var(--rows, 3), 1fr);
    gap: 1rem;
    height: 100vh;
    width: 100vw;
    padding: 2rem;
    box-sizing: border-box;
}

.vc-grid-slot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.vc-grid-slot .lichter-column {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.vc-grid-slot.empty {
    opacity: 0.1;
    border: 0;
}

/* Kerzen in Kapellen-Ansicht */
.vc-chapel-display .lichter-column {
    text-align: center;
}

.vc-chapel-display .licht-img-wrap {
    position: relative;
}

.vc-chapel-display .licht-time-remaining {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.vc-chapel-display .licht-info {
    margin-top: 0.5rem;
}

.vc-chapel-display .licht-heading,
.vc-chapel-display .licht-von {
    color: #fff;
}

/* Status-Anzeige */
.vc-chapel-status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.vc-candle-count {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vc-count {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b35;
}

.vc-label {
    font-size: 1.2rem;
}

.vc-update-time {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Vollbild-Toggle */
.vc-fullscreen-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 11;
    transition: all 0.3s ease;
    opacity: 0;
}

.vc-chapel-display.vc-fullscreen:hover .vc-fullscreen-toggle {
    opacity: 1;
}

.vc-fullscreen-toggle:hover, .vc-fullscreen-toggle:focus {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.vc-fullscreen-toggle svg {
    fill: #fff;
    display: block;
}

/* Vollbild-Modus */
.vc-chapel-display.is-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

/* Versteckte Kerzen für Rotation */
.vc-hidden-candles {
    display: none !important;
}

/* ==========================================================================
   GIF Preview (Admin)
   ========================================================================== */

.vc-gif-preview {
    margin: 2rem 0;
}

.vc-gif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.vc-gif-item {
    text-align: center;
}

.vc-gif-item img {
    width: 100%;
    height: auto;
    max-width: 80px;
}

.vc-gif-item p {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* ==========================================================================
   Single Candle Display
   ========================================================================== */

.vc-single-candle {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.vc-back-link {
    margin-bottom: 1.5rem;
}

.vc-back-link a {
    color: #ff6b35;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.vc-back-link a:hover {
    color: #e85a2a;
    text-decoration: underline;
}

.vc-candle-display {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.vc-candle-image {
    flex-shrink: 0;
    text-align: center;
    background: radial-gradient(ellipse at 50% 62%, #12294a 0%, #0b1e3d 58%, #081527 100%);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    box-shadow: 0 10px 28px rgba(11, 30, 61, 0.28), inset 0 0 0 1px rgba(181, 117, 14, 0.18);
}

.vc-candle-image img {
    max-width: 280px;
    height: auto;
    mix-blend-mode: screen;
    filter: contrast(1.05) saturate(1.05);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.vc-burning-time {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

.vc-candle-expired {
    color: #999;
    font-style: italic;
    padding: 2rem;
    text-align: center;
}

.vc-candle-info {
    flex: 1;
}

.vc-candle-for {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #333;
}

.vc-candle-message {
    background: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #ff6b35;
    margin: 1.5rem 0;
    line-height: 1.6;
    font-size: 1rem;
    color: #555;
}

.vc-candle-from {
    font-size: 1.125rem;
    color: #666;
    margin: 1rem 0;
}

.vc-candle-lit-date {
    font-size: 0.875rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Send Section on Single Page */
.vc-send-section {
    margin-top: 2rem;
}

.vc-toggle-send-form {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.vc-send-section .vc-form-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 1.5rem;
}

.vc-send-section .vc-form-container.active {
    max-height: 1000px;
}

/* Responsive für Single Candle */
@media (max-width: 768px) {
    .vc-candle-display {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .vc-candle-info {
        width: 100%;
    }
    
    .vc-candle-for {
        font-size: 1.5rem;
    }
    
    .vc-toggle-send-form {
        width: 100%;
        max-width: none;
    }
}

/* ==========================================================================
   Dark Mode Support (optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Kann bei Bedarf erweitert werden */
}

/* Fullpage Chapel Styles */
body.chapel-archive-display,
body.chapel-display-fullpage {
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
}

.chapel-display-fullpage .vc-chapel-display,
.chapel-archive-display .vc-chapel-display {
    width: 100vw;
    height: 100vh;
}


/* ==========================================================================
   Viva São Pio — SAFE2 GRID
   Somente organização da grade. Não altera a imagem da vela.
   ========================================================================== */

.vc-display-wrapper .lichter-group {
    justify-content: center;
    gap: 22px;
}

.vc-display-wrapper .lichter-column {
    flex: 0 0 calc(25% - 22px);
    max-width: 210px;
    min-width: 170px;
}

/* Mantém integralmente .licht-img-wrap e .licht-img-wrap img da versão
   traduzida enviada pelo usuário. */

@media (max-width: 900px) {
    .vc-display-wrapper .lichter-column {
        flex: 0 0 calc(33.333% - 22px);
        max-width: 200px;
        min-width: 155px;
    }
}

@media (max-width: 640px) {
    .vc-display-wrapper .lichter-group {
        gap: 14px;
    }

    .vc-display-wrapper .lichter-column {
        flex: 0 0 calc(50% - 14px);
        max-width: 175px;
        min-width: 135px;
    }
}


/* ==========================================================================
   Viva São Pio — SAFE4
   Refinamento visual da grade de velas.
   Não altera lógica, GIFs, shortcodes, AJAX ou banco de dados.
   ========================================================================== */

/* Grade real: 4 desktop / 3 tablet / 2 mobile */
.vc-display-wrapper .lichter-group {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 1160px !important;
    margin: 0 auto !important;
    align-items: start !important;
}

.vc-display-wrapper .lichter-column {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: center !important;
}

.vc-display-wrapper .licht-single-content {
    width: 100%;
    max-width: 245px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 16px;
    box-shadow: none;
}

/* Fundo contemplativo: azul-marinho com halo quente muito discreto. */
.vc-display-wrapper .licht-img-wrap {
    width: 100%;
    min-height: 255px;
    margin: 0 0 12px;
    padding: 22px 18px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 27%, rgba(222,167,69,.19) 0%, rgba(222,167,69,.07) 21%, transparent 38%),
        radial-gradient(ellipse at 50% 66%, #183A63 0%, #102D50 48%, #0B213E 72%, #07172C 100%);
    border: 1px solid rgba(201,138,18,.23);
    border-radius: 16px;
    box-shadow:
        0 12px 26px rgba(11,30,61,.17),
        inset 0 0 0 1px rgba(255,255,255,.025);
}

/* A imagem deixa de parecer um recorte grande dentro do card.
   Mantemos o screen que já integra o fundo preto do GIF ao azul. */
.vc-display-wrapper .licht-img-wrap img {
    width: 118px !important;
    max-width: 118px !important;
    height: auto !important;
    max-height: 205px !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
    mix-blend-mode: screen !important;
    filter:
        contrast(1.04)
        saturate(.96)
        drop-shadow(0 8px 12px rgba(0,0,0,.15)) !important;
}

/* Informação sob a vela */
.vc-display-wrapper .licht-info {
    min-height: 48px;
    color: #506681;
    font-size: .88rem;
    line-height: 1.45;
}

.vc-display-wrapper .licht-heading {
    margin-bottom: 2px;
    color: #405C7B;
    font-weight: 500;
}

.vc-display-wrapper .licht-von {
    color: #6B7B8D;
    font-size: .92em;
}

/* Hover muito sutil */
.vc-display-wrapper .licht-single-content:hover {
    transform: translateY(-3px);
}

@media (max-width: 980px) {
    .vc-display-wrapper .lichter-group {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }

    .vc-display-wrapper .licht-single-content {
        max-width: 225px;
    }

    .vc-display-wrapper .licht-img-wrap {
        min-height: 235px;
    }

    .vc-display-wrapper .licht-img-wrap img {
        width: 108px !important;
        max-width: 108px !important;
        max-height: 190px !important;
    }
}

@media (max-width: 640px) {
    .vc-display-wrapper .lichter-group {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .vc-display-wrapper .licht-single-content {
        max-width: 170px;
    }

    .vc-display-wrapper .licht-img-wrap {
        min-height: 200px;
        padding: 16px 10px 14px;
        border-radius: 14px;
    }

    .vc-display-wrapper .licht-img-wrap img {
        width: 90px !important;
        max-width: 90px !important;
        max-height: 165px !important;
    }

    .vc-display-wrapper .licht-info {
        font-size: .80rem;
        min-height: 44px;
    }
}


/* ==========================================================================
   Viva São Pio — SAFE6
   Formulário compacto, sem prévia da vela.
   ========================================================================== */

.vc-create-form {
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.vc-create-form .lichter-formular {
    min-height: 545px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 1.65rem !important;
    background: #fff !important;
    border-radius: 12px !important;
}

.vc-create-form .lichter-form-row {
    margin-bottom: 1rem !important;
}

.vc-create-form .vc-message-row,
.vc-create-form .vc-message-col {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

.vc-create-form .textarea-wrapper,
.vc-create-form #virtcan_message {
    width: 100% !important;
    max-width: 100% !important;
}

.vc-create-form #virtcan_message {
    min-height: 150px !important;
    resize: vertical !important;
}

.vc-create-form .customCheckbox {
    margin: .25rem 0 .8rem !important;
}

.vc-create-form .dsgvo_hinweis {
    margin-top: .4rem !important;
    padding: .85rem 1rem !important;
}

.vc-create-form .form-actions {
    margin-top: auto !important;
    padding-top: .55rem !important;
}

/* SAFE6 — gradient stronger and more visible in candle grid */
.vc-display-wrapper .licht-img-wrap {
    background:
      radial-gradient(circle at 50% 25%, rgba(235,182,76,.23) 0%, rgba(235,182,76,.08) 24%, transparent 41%),
      linear-gradient(155deg,#183E70 0%,#12335E 35%,#0C274A 67%,#07182E 100%) !important;
    border: 1px solid rgba(201,138,18,.28) !important;
    box-shadow:
      0 12px 26px rgba(11,30,61,.18),
      inset 0 1px 0 rgba(255,255,255,.04) !important;
}

@media (max-width: 640px) {
    .vc-create-form .lichter-formular {
        min-height: auto !important;
        padding: 1.15rem !important;
    }
    .vc-create-form #virtcan_message {
        min-height: 128px !important;
    }
}


/* ==========================================================================
   Viva São Pio — SAFE8
   O próprio plugin é dono do card visível do formulário.
   ========================================================================== */

.vc-form-wrapper.vc-create-form {
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.vc-form-wrapper.vc-create-form .lichter-formular {
    width: 100% !important;
    height: 100% !important;
    min-height: 545px !important;
    margin: 0 !important;
    padding: 1.35rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1px solid rgba(185, 127, 26, 0.34) !important;
    border-radius: 15px !important;
    box-shadow: 0 14px 34px rgba(67, 48, 26, 0.09) !important;
    overflow: hidden !important;
}

.vc-form-wrapper.vc-create-form .lichter-form-row {
    margin-bottom: .9rem !important;
}

.vc-form-wrapper.vc-create-form #virtcan_message {
    min-height: 132px !important;
}

.vc-form-wrapper.vc-create-form .customCheckbox {
    margin: .1rem 0 .55rem !important;
}

.vc-form-wrapper.vc-create-form .dsgvo_hinweis {
    margin-top: .25rem !important;
    margin-bottom: 0 !important;
    padding: .8rem .95rem !important;
}

.vc-form-wrapper.vc-create-form .form-actions {
    margin-top: auto !important;
    padding-top: .55rem !important;
}

@media (max-width: 640px) {
    .vc-form-wrapper.vc-create-form .lichter-formular {
        height: auto !important;
        min-height: 0 !important;
        padding: 1.15rem !important;
    }
}

/* ==========================================================================
   Viva São Pio — SAFE9
   Página individual da vela (/vela/.../)
   ========================================================================== */

/* Oculta apenas na página individual da vela os elementos nativos do tema
   que duplicam o conteúdo ou não fazem parte da experiência da Capela. */
body.single-virtcan_candle .entry-header,
body.single-virtcan_candle .entry-meta,
body.single-virtcan_candle .post-navigation,
body.single-virtcan_candle .navigation.post-navigation,
body.single-virtcan_candle .nav-links,
body.single-virtcan_candle .ast-pagination,
body.single-virtcan_candle .ast-single-post-order,
body.single-virtcan_candle .site-footer,
body.single-virtcan_candle footer#colophon {
    display: none !important;
}

body.single-virtcan_candle .vc-single-candle-vsp {
    max-width: 980px;
    margin: 1.25rem auto 3rem;
    padding: 0 1.25rem;
}

/* Retorno elegante para a grade da Capela Virtual. */
body.single-virtcan_candle .vc-vsp-back-link {
    margin: .35rem 0 1.35rem;
}

body.single-virtcan_candle .vc-vsp-back-link a,
body.single-virtcan_candle .vc-vsp-back-link a:visited {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .68rem 1rem;
    border: 1px solid rgba(185, 127, 26, .42);
    border-radius: 8px;
    background: #fffaf2;
    color: #173b5e;
    text-decoration: none !important;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

body.single-virtcan_candle .vc-vsp-back-link a:hover,
body.single-virtcan_candle .vc-vsp-back-link a:focus {
    color: #173b5e;
    background: #fff4df;
    border-color: rgba(185, 127, 26, .72);
    text-decoration: none !important;
    transform: translateY(-1px);
}

body.single-virtcan_candle .vc-candle-display {
    border: 1px solid rgba(185, 127, 26, .18);
    border-radius: 15px;
    box-shadow: 0 14px 34px rgba(67, 48, 26, .09);
    padding: 2.1rem;
    gap: 2.4rem;
}

body.single-virtcan_candle .vc-burning-time {
    margin: 1rem 0 0;
    color: #9d8666;
    font-size: .9rem;
    font-style: italic;
    line-height: 1.4;
}

/* De / Para no card: rótulo em negrito, conteúdo menor e normal. */
body.single-virtcan_candle .vc-vsp-person-line {
    margin: .5rem 0;
    color: #26384a;
    line-height: 1.35;
}

body.single-virtcan_candle .vc-vsp-person-line strong {
    display: inline;
    margin-right: .35rem;
    color: #0d2942;
    font-size: 1.15rem;
    font-weight: 700;
}

body.single-virtcan_candle .vc-vsp-person-line span {
    color: #4f5d68;
    font-size: 1rem;
    font-weight: 400;
}

body.single-virtcan_candle .vc-vsp-person-for {
    margin-bottom: 1rem;
}

body.single-virtcan_candle .vc-candle-message {
    margin: 1rem 0 1.3rem;
}

body.single-virtcan_candle .vc-candle-lit-date {
    margin-top: 1.1rem;
    color: #9a9a9a;
    font-size: .86rem;
}

/* A seção Enviar esta vela foi retirada do PHP na SAFE9. */
body.single-virtcan_candle .vc-send-section {
    display: none !important;
}

@media (max-width: 768px) {
    body.single-virtcan_candle .vc-single-candle-vsp {
        margin-top: .8rem;
        padding: 0 .85rem;
    }
body.single-virtcan_candle .vc-candle-display {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    body.single-virtcan_candle .vc-vsp-back-link a {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   Viva São Pio — SAFE9.3
   De / Para empilhados SOMENTE no mobile.
   Desktop permanece com o layout original da SAFE9.1.
   ========================================================================== */
@media (max-width: 599px) {
    .vc-form-wrapper.vc-create-form .vc-person-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: .85rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .vc-form-wrapper.vc-create-form .vc-person-row > .lichter-form-col {
        display: block !important;
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .vc-form-wrapper.vc-create-form .vc-person-row input[type="text"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}
