/* ==========================================================================
   MAXIM LOGO UPLOAD - ELEGANT STYLES (CUSTOM PALETTE)
   ========================================================================== */

/* Container principale */
#wc-logo-upload-container {
    max-width: 1100px;
    margin: 30px auto;
    background: linear-gradient(135deg, #ffffff 0%, #faf3e0 100%);
    border: none;
    border-radius: 20px;
    padding: 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 25px -5px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Gradient decorativo superiore */
#wc-logo-upload-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e07a5f, #6f4e37, #e07a5f);
}

/* ==========================================================================
   LAYOUT E STRUCTURE
   ========================================================================== */

.wc-two-column-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.wc-left-column, .wc-right-column {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   SEZIONE REQUISITI (SINISTRA)
   ========================================================================== */

.wc-logo-requirements {
    background: linear-gradient(135deg, #faf3e0 0%, #f5ede1 100%);
    border: 1px solid #e8dcc6;
    border-radius: 16px;
    padding: 32px;
    height: fit-content;
    position: relative;
    overflow: hidden;
}

.wc-logo-requirements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #e07a5f, #6f4e37);
}

.wc-logo-requirements h4 {
    color: #6f4e37;
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid dei requisiti */
.wc-requirements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.wc-requirement-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e8dcc6;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(111, 78, 55, 0.05);
}

.wc-requirement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.15);
}

.wc-requirement-item strong {
    color: #6f4e37;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.wc-requirement-item span {
    color: #e07a5f;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.025em;
}

/* ==========================================================================
   SEZIONE STAMPA
   ========================================================================== */

.wc-printing-requirements {
    border-top: 1px solid #e8dcc6;
    padding-top: 20px;
    margin-top: 20px;
}

.wc-printing-requirements h5 {
    color: #6f4e37;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.wc-printing-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wc-print-rule {
    background: linear-gradient(135deg, #fefefe 0%, #faf3e0 100%);
    border-radius: 10px;
    padding: 16px;
    border-left: 3px solid #e07a5f;
    transition: all 0.2s ease;
}

.wc-print-rule:hover {
    background: #f5ede1;
    border-left-color: #6f4e37;
}

.wc-print-rule strong {
    color: #6f4e37;
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.wc-print-rule span {
    color: #8b6f47;
    font-size: 12px;
    line-height: 1.5;
}

/* ==========================================================================
   FORM AUTENTICAZIONE (DESTRA)
   ========================================================================== */

.wc-upload-step {
    background: #ffffff;
    border: 1px solid #e8dcc6;
    border-radius: 16px;
    padding: 32px;
    height: fit-content;
    box-shadow: 0 1px 3px rgba(111, 78, 55, 0.05);
}

.wc-step-header h4 {
    color: #6f4e37;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-step-header p {
    color: #8b6f47;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ==========================================================================
   FORM FIELDS
   ========================================================================== */

.wc-form-group {
    margin-bottom: 24px;
}

.wc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6f4e37;
    font-size: 14px;
}

.wc-form-group input,
.wc-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8dcc6;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
}

.wc-form-group input:focus,
.wc-form-group textarea:focus {
    outline: none;
    border-color: #e07a5f;
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.1);
    transform: translateY(-1px);
}

.wc-form-group small {
    display: block;
    margin-top: 6px;
    color: #8b6f47;
    font-size: 12px;
    line-height: 1.4;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.wc-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
}

.wc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.wc-btn:hover::before {
    left: 100%;
}

.wc-btn-primary {
    background: linear-gradient(135deg, #e07a5f, #d16a4f);
    color: white;
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

.wc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 122, 95, 0.4);
}

.wc-btn-success {
    background: linear-gradient(135deg, #6f4e37, #5d4230);
    color: white;
    box-shadow: 0 4px 12px rgba(111, 78, 55, 0.3);
}

.wc-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 78, 55, 0.4);
}

.wc-btn-secondary {
    background: linear-gradient(135deg, #8b6f47, #a0845a);
    color: white;
}

.wc-btn-secondary:hover {
    transform: translateY(-1px);
}

/* ==========================================================================
   SPECIAL SECTIONS
   ========================================================================== */

/* Credenziali test */
.wc-test-credentials {
    background: linear-gradient(135deg, #faf3e0 0%, #f5ede1 100%);
    border: 1px solid #e07a5f;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #6f4e37;
}

/* Tips section */
.wc-logo-tips {
    background: linear-gradient(135deg, #fdf6e3 0%, #faf3e0 100%);
    border: 1px solid #e07a5f;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.wc-logo-tips h5 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #6f4e37;
    font-size: 15px;
    font-weight: 600;
}

.wc-logo-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #8b6f47;
    font-size: 13px;
}

.wc-logo-tips li {
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Success section */
.wc-success-content {
    text-align: center;
    padding: 40px 20px;
}

.wc-success-content h4 {
    color: #6f4e37;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.wc-success-note {
    background: linear-gradient(135deg, #f5ede1 0%, #faf3e0 100%);
    border: 1px solid #e07a5f;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    color: #6f4e37;
    line-height: 1.5;
}

/* ==========================================================================
   FORM FIELDS - PAGE BUILDER COMPATIBLE
   ========================================================================== */

/* Eredita stili da Elementor/DIVI ma aggiungi solo necessari */
.wc-form-group input,
.wc-form-group textarea,
#wc-order-email,
#wc-order-number,
#wc-logo-file,
#wc-pantone-comments {
    /* RIMUOVI !important per permettere eredità */
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    
    /* Solo se non definiti dal page builder */
    padding: var(--form-field-padding, 14px 16px);
    border-radius: var(--form-field-border-radius, 12px);
    border: var(--form-field-border, 2px solid #e8dcc6);
    background: var(--form-field-background, #ffffff);
    font-size: var(--form-field-font-size, 14px);
}

/* Focus states che rispettano i page builder */
.wc-form-group input:focus,
.wc-form-group textarea:focus {
    outline: none;
    /* Usa colore primario del tema se disponibile */
    border-color: var(--e-global-color-accent, var(--et_global_color_accent, #e07a5f));
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.1);
}

/* Lascia che il page builder gestisca tutto */
.wc-form-group input,
.wc-form-group textarea {
    /* Solo layout, non styling */
    width: 100%;
    display: block;
    margin-bottom: 8px;
}

/* ==========================================================================
   BUTTONS - PAGE BUILDER COMPATIBLE
   ========================================================================== */

.wc-btn {
    /* Layout e comportamento base */
    display: inline-block;
    padding: var(--button-padding, 14px 28px);
    border: none;
    border-radius: var(--button-border-radius, 12px);
    cursor: pointer;
    font-size: var(--button-font-size, 14px);
    font-weight: var(--button-font-weight, 600);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
    
    /* Solo se page builder non ha definito */
    font-family: var(--button-font-family, inherit);
    line-height: var(--button-line-height, 1.4);
}

/* Effetto animazione (opzionale) */
.wc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.wc-btn:hover::before {
    left: 100%;
}

/* Usa colori tema se disponibili, altrimenti fallback */
.wc-btn-primary {
    background: var(--e-global-color-primary, var(--et_global_color_accent, linear-gradient(135deg, #e07a5f, #d16a4f)));
    color: var(--e-global-color-text-light, var(--et_global_color_text_light, white));
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

.wc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 122, 95, 0.4);
    opacity: 0.9;
}

.wc-btn-success {
    background: var(--e-global-color-secondary, var(--et_global_color_secondary, linear-gradient(135deg, #6f4e37, #5d4230)));
    color: var(--e-global-color-text-light, var(--et_global_color_text_light, white));
    box-shadow: 0 4px 12px rgba(111, 78, 55, 0.3);
}

.wc-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 78, 55, 0.4);
    opacity: 0.9;
}

.wc-btn-secondary {
    background: var(--e-global-color-text, var(--et_global_color_text_dark, linear-gradient(135deg, #8b6f47, #a0845a)));
    color: var(--e-global-color-text-light, var(--et_global_color_text_light, white));
}

.wc-btn-secondary:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Fallback se page builder rimuove i nostri stili */
#wc-verify-btn,
button[type="submit"],
.wc-btn {
    min-height: var(--button-min-height, 44px);
    border: var(--button-border, none) !important;
}

/* Reset solo se necessario */
.wc-btn:focus {
    outline: 2px solid var(--e-global-color-primary, #e07a5f);
    outline-offset: 2px;
}

/* Lascia che Elementor/DIVI gestisca tutto */
.wc-btn {
    /* Solo comportamento, no styling */
    cursor: pointer;
    transition: all 0.3s ease;
}
    
/* ==========================================================================
   NOTICES
   ========================================================================== */

.wc-test-notice {
    background: linear-gradient(135deg, #fdf6e3 0%, #faf3e0 100%);
    border: 2px solid #e07a5f;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    color: #6f4e37;
    font-weight: 600;
}

.wc-smtp-notice {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    color: #991b1b;
    font-weight: 600;
}

.wc-message {
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 12px;
    font-weight: 500;
}

.wc-message.success {
    background: linear-gradient(135deg, #f5ede1 0%, #faf3e0 100%);
    color: #6f4e37;
    border: 1px solid #e07a5f;
}

.wc-message.error {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ==========================================================================
   UTILITY
   ========================================================================== */

.wc-spinner {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #8b6f47;
}

#wc-loading {
    background: rgba(250, 243, 224, 0.9);
    border-radius: 12px;
    margin: 20px 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    #wc-logo-upload-container {
        margin: 15px;
        padding: 24px;
    }
    
    .wc-two-column-layout {
        flex-direction: column;
        gap: 24px;
    }
    
    .wc-logo-requirements,
    .wc-upload-step {
        padding: 24px;
    }
    
    .wc-step-header h4,
    .wc-logo-requirements h4 {
        font-size: 18px;
    }
    
    .wc-requirement-item,
    .wc-print-rule {
        padding: 14px;
    }
    
    .wc-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #wc-logo-upload-container {
        margin: 10px;
        padding: 20px;
    }
    
    .wc-logo-requirements h4,
    .wc-step-header h4 {
        font-size: 16px;
    }
    
    .wc-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }
}