/* ══════════════════════════════════════════
   DYNAMIC FORMS — Futuristic Styling
   ══════════════════════════════════════════
   Styles for [eletroprint_form_contacto] and
   [eletroprint_form_personalizados] shortcodes.
   Matches the existing neon theme aesthetic.
*/

.ep-dynamic-form-wrap {
    position: relative;
    background: rgba(18, 18, 28, 0.95);
    border: 1px solid rgba(0, 245, 255, 0.15);
    padding: 2.5rem 2rem;
    overflow: hidden;
}

.ep-dynamic-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00F5FF, #FF00A8, #00F5FF);
    background-size: 200% 100%;
    animation: epDynGradSlide 4s linear infinite;
    z-index: 3;
}

@keyframes epDynGradSlide {
    from { background-position: 0% 0; }
    to { background-position: 200% 0; }
}

.ep-dynamic-form {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Fields */
.ep-dyn-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ep-dyn-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.ep-dyn-field:focus-within .ep-dyn-label {
    color: #00F5FF;
}

.ep-dyn-input,
.ep-dyn-textarea,
.ep-dyn-select {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #FFFFFF;
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid rgba(0, 245, 255, 0.15);
    padding: 0.8rem 1rem;
    outline: none;
    transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    width: 100%;
    box-sizing: border-box;
}

.ep-dyn-input::placeholder,
.ep-dyn-textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.ep-dyn-input:focus,
.ep-dyn-textarea:focus,
.ep-dyn-select:focus {
    border-color: #00F5FF;
    box-shadow: 0 0 12px rgba(0, 245, 255, 0.15), inset 0 0 8px rgba(0, 245, 255, 0.03);
    background: rgba(10, 10, 15, 1);
}

.ep-dyn-input:hover,
.ep-dyn-textarea:hover,
.ep-dyn-select:hover {
    border-color: rgba(0, 245, 255, 0.35);
}

.ep-dyn-textarea {
    resize: vertical;
    min-height: 120px;
}

.ep-dyn-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(0,245,255,0.5)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px 6px;
}

/* Submit */
.ep-dyn-submit {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0A0A0F;
    background: #00F5FF;
    border: none;
    padding: 1rem 2.5rem;
    cursor: pointer;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    margin-top: 0.5rem;
    align-self: flex-start;
    position: relative;
}

.ep-dyn-submit:hover {
    background: #FF00A8;
    color: #FFFFFF;
    box-shadow: 0 0 30px rgba(255, 0, 168, 0.35);
    transform: translateY(-3px);
}

/* Feedback */
.ep-dyn-feedback {
    padding: 1rem 1.25rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.ep-dyn-feedback.ep-dyn-success {
    display: block !important;
    background: rgba(0, 245, 255, 0.08);
    border: 1px solid rgba(0, 245, 255, 0.25);
    color: #00F5FF;
}

.ep-dyn-feedback.ep-dyn-error {
    display: block !important;
    background: rgba(255, 0, 168, 0.08);
    border: 1px solid rgba(255, 0, 168, 0.25);
    color: #FF00A8;
}

/* Validation */
.ep-dyn-input.ep-dyn-invalid,
.ep-dyn-textarea.ep-dyn-invalid,
.ep-dyn-select.ep-dyn-invalid {
    border-color: #FF00A8;
    box-shadow: 0 0 6px rgba(255, 0, 168, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .ep-dynamic-form-wrap {
        padding: 1.75rem 1.25rem;
    }

    .ep-dyn-submit {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ep-dynamic-form-wrap {
        padding: 1.25rem 1rem;
    }

    .ep-dyn-submit {
        padding: 0.85rem 1.5rem;
        font-size: 0.85rem;
    }
}