/**
 * Stili Frontend CW Foto Riconoscimenti (Integrazione Nativa YOOtheme Pro & Colore Sfondo Pagina)
 */

/* Wrapper completamente trasparente per integrarsi senza alterare lo sfondo */
.cw-fr-wrapper {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    color: inherit;
}

/* Etichette form */
.cw-fr-wrapper .uk-form-label {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.cw-fr-wrapper .uk-form-label span {
    color: #fca5a5 !important;
}

/* Campi Input (Stile pulito con linea inferiore come nel tema) */
.cw-fr-wrapper .uk-input {
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 4px !important;
    height: 40px !important;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cw-fr-wrapper .uk-input:focus {
    border-bottom: 1px solid #ffffff !important;
    box-shadow: 0 1px 0 #ffffff !important;
    outline: none !important;
}

/* Textarea 'Cosa vedi' */
.cw-fr-wrapper .uk-textarea {
    background-color: rgba(0, 0, 0, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 4px !important;
    padding: 12px 14px !important;
    box-shadow: none !important;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.cw-fr-wrapper .uk-textarea:focus {
    background-color: rgba(0, 0, 0, 0.25) !important;
    border-color: #ffffff !important;
    outline: none !important;
}

/* Segnaposto (Placeholder) */
.cw-fr-wrapper .uk-input::placeholder,
.cw-fr-wrapper .uk-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.95rem;
}

/* Casella Privacy */
.cw-fr-wrapper .uk-checkbox {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 3px !important;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cw-fr-wrapper .uk-checkbox:checked {
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2214%22%20height%3D%2211%22%20viewBox%3D%220%200%2014%2011%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpolygon%20fill%3D%22%237f1d1d%22%20points%3D%2212%201%205%207.5%202%204.5%201%205.5%205%2010%2013%202%22%20%2F%3E%0A%3C%2Fsvg%3E") !important;
}

/* Pulsante Invia coordinato con YOOtheme Pro */
.cw-fr-wrapper .cw-fr-submit-btn {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 500px !important;
    padding: 10px 42px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.cw-fr-wrapper .cw-fr-submit-btn:hover {
    background-color: #ffffff !important;
    color: #7f1d1d !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cw-fr-wrapper .cw-fr-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Box dei riconoscimenti già approvati */
.cw-fr-approved-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 30px;
    backdrop-filter: blur(6px);
}

.cw-fr-entry-card {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-left: 4px solid #ffffff !important;
    border-radius: 6px;
    padding: 14px 18px;
    color: #ffffff !important;
}

.cw-fr-author-name {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
}

.cw-fr-date {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.85rem;
}

.cw-fr-entry-content {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Box Notifica Esito (Feedback invio) */
.cw-fr-feedback-box {
    margin-top: 20px;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
}

.cw-fr-feedback-box.uk-alert-success {
    background: rgba(22, 163, 74, 0.25) !important;
    border: 1px solid rgba(74, 222, 128, 0.8) !important;
    color: #ffffff !important;
}

.cw-fr-feedback-box.uk-alert-danger {
    background: rgba(220, 38, 38, 0.35) !important;
    border: 1px solid rgba(248, 113, 113, 0.8) !important;
    color: #ffffff !important;
}
