/* PDF Params Styles */
.pdf-params-container {
    margin: 0 auto;
    padding: 0;
    .pdf-params-header{
        border-bottom: 1px solid var(--primary-color);
        padding-bottom: 20px;
        h1{
            font-size: 30px;
            font-weight:600;
            color : var(--primary-black);
            margin:0;
            display: flex;
            align-items: center;
            gap: 10px;
            line-height:100% ;
        }
        img{
            width: 32px;
            height: 32px;
            filter: invert(27%) sepia(70%) saturate(4111%) hue-rotate(221deg) brightness(101%) contrast(101%);
        }
    }
    h2 {
        color: var(--primary-color);
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 20px;
        margin-top : 40px
    }

    /* Logo Section */
    .logo-section {
        padding-bottom: 40px;
        border-bottom: 1px solid #E6E6E6;

        .logo-content {
            display: flex;
            align-items: flex-start;
            gap: 40px;

            .logo-info {
                width: 40%;


                h3 {
                    color: var(--primary-black);
                    font-size: 16px;
                    font-weight: 600;
                    margin: 0 0 4px 0;
                }

                p {
                    color: #979797;
                    font-size: 14px;
                    line-height: 1.5;
                    margin: 0;
                }
            }

            .logo-preview {
                width: 60%;
                height: 160px;
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
                border-radius: 12px;
                border: 2px solid var(--border-light);
                position: relative;
                overflow: hidden;

                .edit-logo-btn {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    background: transparent;

                    border: 1px solid var(--white);
                    color: var(--white);
                    padding: 10px 20px;
                    border-radius: 10px;
                    cursor: pointer;
                    font-size: 14px;
                    font-weight: 500;
                    transition: all 0.3s;
                    backdrop-filter: blur(10px);

                    &:hover {
                        background: var(--primary-color);
                        color: var(--white);
                        transform: translate(-50%, -50%) scale(1.05);
                        border: 1px solid var(--primary-color);
                    }

                    i {
                        margin-right: 8px;
                    }
                }
            }
        }
    }

    /* Colors Section */
    .colors-section {
        padding: 40px 0;

        .colors-content {
            display: flex;
            align-items: flex-start;
            gap: 40px;

            .colors-info {
                width: 40%;

                h3 {
                    color: var(--primary-color);
                    font-size: 24px;
                    font-weight: 600;
                    margin: 0 0 12px 0;
                }

                p {
                    color: var(--text-muted);
                    font-size: 16px;
                    line-height: 1.5;
                    margin: 0;
                }
            }

            .colors-preview {
                width: 60%;
                display: flex;
                flex-wrap: wrap;
                justify-content: flex-end;
                /* flex-direction: column; */
                gap: 20px;

                .color-item {
                    display: flex;
                    flex-direction: column;
                    gap: 12px;

                    label {
                        color: var(--text-primary);
                        font-weight: 600;
                        font-size: 1rem;
                        margin: 0;
                    }

                    .color-picker-wrapper {
                        display: flex;
                        align-items: center;
                        gap: 12px;

                        input[type="color"] {
                            width: 60px;
                            height: 40px;
                            border: 2px solid var(--border-light);
                            border-radius: 6px;
                            cursor: pointer;
                            background: none;
                            padding: 0;
                            margin: 0;

                            &::-webkit-color-swatch-wrapper {
                                padding: 0;
                            }

                            &::-webkit-color-swatch {
                                border: none;
                                border-radius: 4px;
                            }

                            &:hover {
                                border-color: var(--primary-color);
                            }

                            &:focus {
                                outline: none;
                                border-color: var(--primary-color);
                                box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
                            }
                        }

                        .color-hex-input {
                            width: 100px;
                            height: 40px;
                            margin-bottom: 0;
                            border: 2px solid var(--border-light);
                            border-radius: 6px;
                            padding: 8px 12px;
                            font-family: 'Courier New', monospace;
                            font-size: 0.875rem;
                            color: var(--text-primary);
                            background: var(--bg-primary);
                            transition: all 0.3s;

                            &:hover {
                                border-color: var(--border-medium);
                            }

                            &:focus {
                                outline: none;
                                border-color: var(--primary-color);
                                box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
                            }

                            &::placeholder {
                                color: var(--text-muted);
                            }
                        }
                    }
                }
            }
        }
    }

    /* Responsive Design */
    @media (max-width: 900px) {
        .logo-section {
            .logo-content {
                flex-direction: column;
                gap: 20px;

                .logo-info {
                    width: 100%;

                    h3 {
                        font-size: 20px;
                    }

                    p {
                        font-size: 14px;
                    }
                }

                .logo-preview {
                    width: 100%;
                    height: 120px;

                    .edit-logo-btn {
                        font-size: 0.75rem;
                        padding: 8px 16px;
                    }
                }
            }
        }

        .colors-section {
            .colors-content {
                flex-direction: column;
                gap: 20px;

                .colors-info {
                    width: 100%;

                    h3 {
                        font-size: 20px;
                    }

                    p {
                        font-size: 14px;
                    }
                }

                .colors-preview {
                    width: 100%;
                    justify-content: flex-start;

                  
                }
            }
        }
    }
}
@media (max-width: 750px) {
    .pdf-params-container{
       padding : 15px;
       padding-bottom: 100px;

    }

}

/* Styles pour le bouton de template personnalisé */
.pdf-params-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.custom-template-btn {
    background-color: var(--primary-color, #2563eb);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
    height: 44px;
    box-sizing: border-box;
}

.custom-template-btn:hover {
    background-color: var(--primary-hover, #2260FF);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-template-btn i {
    font-size: 1rem;
}

/* Styles pour le modal de template personnalisé */
.custom-template-container {
    padding: 20px 0;
}

.custom-template-container p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}



/* Styles pour l'information sur les prix */
.pricing-info {
    margin: 0 0 24px 0;
}

.pricing-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

.pricing-alert i {
    color: #f39c12;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.pricing-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.pricing-text strong {
    color: #856404;
    font-weight: 600;
}

.forminator-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Styles pour le formulaire Forminator du template personnalisé */
.custom-template-form  {
    font-family: inherit;
}

.custom-template-form .forminator-row {
    margin-bottom: 12px;
}

.custom-template-form .forminator-col {
    margin-bottom: 8px;
}

.custom-template-form .forminator-field {
    margin-bottom: 0;
}

.custom-template-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary, #333);
    font-size: 0.9rem;
}

.custom-template-form .forminator-field textarea,
.custom-template-form .forminator-field select,
.custom-template-form .forminator-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light, #e5e7eb);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #333);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.custom-template-form .forminator-field input:focus,
.custom-template-form .forminator-field textarea:focus,
.custom-template-form .forminator-field select:focus {
    outline: none;
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-template-form .forminator-field textarea {
    min-height: 100px;
    resize: vertical;
}

.custom-template-form .forminator-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px;
}

/* Styles spécifiques pour les inputs */
.custom-template-form .forminator-field input[type="text"],
.custom-template-form .forminator-field input[type="email"],
.custom-template-form .forminator-field input[type="tel"],
.custom-template-form .forminator-field input[type="url"],
.custom-template-form .forminator-field input[type="number"],
.custom-template-form .forminator-field input[type="password"] {
    height: 44px;
    line-height: 1.2;
}

.custom-template-form .forminator-field input[type="checkbox"],
.custom-template-form .forminator-field input[type="radio"] {
    width: auto;
    height: auto;
    margin-right: 8px;
    margin-top: 2px;
}

/* Réduction des espacements pour les champs de type checkbox/radio */
.custom-template-form .forminator-field.forminator-field-checkbox,
.custom-template-form .forminator-field.forminator-field-radio {
    margin-bottom: 8px;
}

.custom-template-form .forminator-field.forminator-field-checkbox .forminator-field,
.custom-template-form .forminator-field.forminator-field-radio .forminator-field {
    margin-bottom: 4px;
}

.custom-template-form .forminator-field button {
    background: var(--primary-color, #2563eb);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.custom-template-form .forminator-field button:hover {
    background: var(--primary-hover, #2260FF);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.custom-template-form .forminator-field button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.custom-template-form .forminator-error {
    color: var(--danger-color, #ef4444);
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
}

.custom-template-form .forminator-field-error .forminator-field input,
.custom-template-form .forminator-field-error .forminator-field textarea,
.custom-template-form .forminator-field-error .forminator-field select {
    border-color: var(--danger-color, #ef4444);
}

.custom-template-form .forminator-field-error .forminator-field input:focus,
.custom-template-form .forminator-field-error .forminator-field textarea:focus,
.custom-template-form .forminator-field-error .forminator-field select:focus {
    border-color: var(--danger-color, #ef4444);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.custom-template-form .forminator-description {
    color: var(--text-muted, #6b7280);
    font-size: 0.85rem;
    margin-top: 6px;
    line-height: 1.4;
}

/* Responsive pour le formulaire */         
@media (max-width: 768px) {
    .custom-template-form .forminator-field button {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .custom-template-form .forminator-field input,
    .custom-template-form .forminator-field textarea,
    .custom-template-form .forminator-field select {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* Responsive pour le bouton */
@media (max-width: 768px) {
    .pdf-params-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .custom-template-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
