.dwf-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 0;
}

.dwf-wrapper-newsletter {
    max-width: 480px;
}

.dwf-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dwf-row {
    width: 100%;
}

.dwf-row-2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dwf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dwf-field label {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.dwf-field input,
.dwf-field textarea {
    width: 100%;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    padding: 12px 18px;
    background-color: #f9fafb;
    font-size: 14px;
    line-height: 1.4;
    color: #111827;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.dwf-field textarea {
    border-radius: 24px;
    resize: vertical;
    min-height: 140px;
}

.dwf-field input::placeholder,
.dwf-field textarea::placeholder {
    color: #9ca3af;
}

.dwf-field input:focus,
.dwf-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.06), 0 8px 20px rgba(15,23,42,0.12);
    background-color: #ffffff;
}

.dwf-button-primary {
    width: 100%;
    border-radius: 9999px;
    border: none;
    padding: 14px 24px;
    background-color: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.dwf-button-primary:hover {
    background-color: #1d4ed8;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.dwf-button-primary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.dwf-alert {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background-color: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 13px;
}

.dwf-label-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.dwf-form-newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dwf-row-newsletter {
    width: 100%;
}

.dwf-field-newsletter-email input {
    border-radius: 9999px;
    padding: 12px 18px;
    background-color: #f9fafb;
}

.dwf-row-newsletter-captcha {
    margin-top: 4px;
}

.dwf-row-newsletter-button {
    margin-top: 2px;
}

.dwf-button-newsletter {
    margin-top: 2px;
}

@media (min-width: 640px) {
    .dwf-row-2 {
        flex-direction: row;
    }

    .dwf-row-2 .dwf-field {
        flex: 1 1 0;
    }

    .dwf-wrapper-newsletter .dwf-form-newsletter {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .dwf-wrapper {
        padding: 24px 0;
    }
}

/* Admin */

.driveweb-admin .driveweb-admin-card {
    margin-top: 16px;
    padding: 16px 18px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15,23,42,0.06);
}

.driveweb-table th,
.driveweb-table td {
    vertical-align: top;
}

.driveweb-table td.driveweb-actions {
    width: 80px;
    text-align: right;
}

.driveweb-creditos {
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
}

.driveweb-creditos a {
    color: #2563eb;
    text-decoration: none;
}

.driveweb-creditos a:hover {
    text-decoration: underline;
}

.driveweb-settings-form .form-table th {
    width: 220px;
}
